>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.comSET RANT ON - The Wombat BlogLife isn’t a morality contest and purity makes a poor shield. - J. Peter MulhernDisclaimer: 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.