I think what happens is VFP interprets formname.tag as a table or cursor 
reference if the form object doesn't exist. If I try ?VARTYPE(formname.tag), 
the error returned is alias not found. IAC, it has behaved consistently for me 
in 9 as far as returning O for a form that exists or U or X for one that does 
not or is NULL. ymmv.

rk

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Allen
Sent: Tuesday, October 13, 2009 10:07 AM
To: [email protected]
Subject: RE: Vartype

I don't know if things have changed but there was a time that testing for a
form object returned "O" even when the object has been disposed of. That's
why for a form I test for the tag.
Al

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Richard Kaye
Sent: 13 October 2009 15:34
To: [email protected]
Subject: RE: Vartype

I would test for the form object itself and not a specific property (i.e. IF
VARTYPE(formname)=[O]).



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/df1eef11e586a64fb54a97f22a8bd044065b2a9...@ackbwddqh1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to