Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview.SelectedItem
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00885264
Message ID:
00886501
Views:
14
Even though I had X-Clicked and closed a form (maybe I did not explicictly do a release -), TYPE and VARTYPE both indicated the closed form was still an Object.

Actually, I would expect TYPE() to return 'O' after the form is released < s >. With TYPE() you have to do some additional checking to make sure that the object reference is not null:
TYPE( 'MyForm' ) = 'O' AND NOT ISNULL( MyForm )
But I would expect VARTYPE() to return 'X' for a form that has been released. Odd...

I just did a quick test in the command window with these results:

DO form itineraries

Close the itineraries form by clicking on the close button

?TYPE( 'itineraries') --> returns O
?VARTYPE( itineraries ) --> returns X

Don't know what is different about your environment...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform