I would test for the form object itself and not a specific property (i.e. IF VARTYPE(formname)=[O]).
A similar gotcha is you must use TYPE to test the existence of field/cursor columns. TYPE works as desired. VARTYPE doesn't. rk -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Allen Sent: Monday, October 12, 2009 1:40 PM To: [email protected] Subject: RE: Vartype Hi Paul Ok I wanted to know if a form with a certain name existed so I have if vartype(formname.tag) == "C" If the form does not exist is errors where If type("formname.tag") == "C" works fine Al _______________________________________________ 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.

