Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB Nothing in Foxpro
Message
From
07/05/2004 22:06:35
 
 
To
07/05/2004 17:37:20
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Miscellaneous
Thread ID:
00902109
Message ID:
00902138
Views:
27
>I use an Mapobjects (from ESRI) active X to display maps in a Foxpro application. Most of the code works fine, but still i get problems in some topics. One of them its the following:
>
>In several methods they return an object address. For example:
>
>lins = map.TrackLine
>
>Returns an object LINE that contains the line drawed by user. But sometimes the user can press the key ESC and then the method returns VB NOTHING. How can we test in VFP if an object is NOTHING??? (its not NULL or EMPTY).
>
>Sincerely:
>
>Edmundo Ríos Miranda

In VFP, it will be a logical value if it is not returned. You can test it like this:
IF vartype(lIns) = "O" and not isnull(lIns)
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform