Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5: How to check to see if the object exists in the me
Message
From
06/05/1997 13:03:44
 
 
To
06/05/1997 00:50:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00030931
Message ID:
00031028
Views:
65
>If the name of your object is MyObject, than:
>
>if type("ThisForm.MyObject") = "O" and (ThisForm.MyObject <> NULL)
> *-- The object already exists
>else
> *-- The object doesn't exists
>endif

Syntax check:

Can you say "x = .NULL."? My equivalent, which I know works is:

IF TYPE("ThisForm.MyObject") = "O" .AND. IsNull(ThisForm.MyObject)
*-- The object already exists
ELSE
*-- The object doesn't exists
ENDIF
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform