Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I find out a cursor exists ?
Message
 
To
03/06/1997 08:51:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00034540
Message ID:
00036228
Views:
38
>=TYPE('myform.dataenvironment.cursor23') && may return "O" if object exists

Edward,

A better check would be;

=TYPE('myform.dataenvironment.cursor23.Name') && which will be "C" if the object exists

because, if the object ever existed the check for type O fails due to the fact that the property remains type O even though its value is NULL. Checking the Name property of an object for type C will work because if the value of the roperty is NULL the name property does not exist.
Previous
Reply
Map
View

Click here to load this message in the networking platform