Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error event does no return to master
Message
From
10/01/2013 16:34:47
 
 
To
10/01/2013 02:47:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01561811
Message ID:
01562069
Views:
50
>>>That may be the case in your example, but after releasing a form - loForm.release() - the object variable will still be an object variable. However, it will be a NULL.
>>
>>I see...
>
>vartype(obj) returns 'X' if obj is null. Your test is OK
loO = createobject( 'form')
? vartype(loO)
O
? type('loO')
O
? isnull(loO)
.F.
loO.release()
? vartype(loO)
X
? type('loO')
O
? isnull(loO)
.T.
I guess my way of assuring it's a fullblown object stems from the years that VARTYPE() wasn't around and we had to use TYPE(). Good to know. I'll simplify my tests in future coding.
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Reply
Map
View

Click here to load this message in the networking platform