Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object??????
Message
From
14/12/2001 11:47:45
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00594470
Message ID:
00594483
Views:
17
Mark if you are using vartype you don't need the isnull since cartype will return X for null variables.

>>Hi everybody.
>>I have an object form1 , different functions calling that object,which i use to display the messages , they change constantly, i display the tables that in use etc.., cause some operations take several minutes. So the problem is that when the the object is called more than once , from different functions, and than you release the object , the other it's still displayed and when release command is called second time it gives an error that "object form1 is not found". What should i do,
>>Thank U.
>
if vartype(myobject) = 'O' and not isnull(myobject)
>   if pemstatus(myobject, 'release', 5)
>      myobject.release()
>   else
>      myobject = .null.   && OR release myobject
>   endif
>endif
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform