OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to set an object variable to null

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
dimpflmoser
Power User
Power User


Joined: 16 Aug 2006
Posts: 59

PostPosted: Tue Apr 15, 2008 9:16 am    Post subject: How to set an object variable to null Reply with quote

Hello everybody,

can anybody tell me how to set an obkectvariable to null, i.e. I have for example an object-varaible which points to a database-connection. Now I'd like to delete the pointer. In VBA I can use the
Code:
set objCon = nothing
-Method. Is there somting equivalent in OOo-Basic?

Thanks Helmut
Back to top
View user's profile Send private message
B Marcelly
Super User
Super User


Joined: 12 May 2004
Posts: 1414
Location: France

PostPosted: Tue Apr 15, 2008 10:43 am    Post subject: Reply with quote

Hi,
Did you try it ?
Code:
objCon = nothing

It does what you want.
But I think your real problem is something else.

Bernard
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group