Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vartype: behavior
Message
From
16/09/1998 17:18:05
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00136852
Message ID:
00137522
Views:
32
>Doesn't that array contain .NULL. for that element if that form does not exist?

>I tried:
>DIMESION aForms[2]
>aForms[1] = CREATEOBJECT('form')
>aForms[2] = CREATEOBJECT('form')
>aForms[2].Release()
>
>Now aForms contains:
>[1] - object reference to first form created: VARTYPE(aForms[1]) is 'O'
>[2] - .NULL. : VARTYPE(aForms[2]) is 'X'
>
>Since the element is .NULL. (or 'X'), don't do the VARTYPE on the non-existant property. I agree, it would me much easier to test it all at once.
>

That's what I thought. :-)
Previous
Reply
Map
View

Click here to load this message in the networking platform