Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect if a form is already open?
Message
From
04/12/2005 14:01:07
John Faithfull
Hunterian Museum, University of Glasgow,
Glasgow, United Kingdom
 
 
To
04/12/2005 13:45:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01074732
Message ID:
01074745
Views:
28
Hi Michel,

Sorry for lack of clarity. This is the code:
if wexist("hugform")=.T.
       hugform.release()
endif
gives the error

1923 object HUGFORM is not found

wexist("hugform") does evaluate to .T., but the object can't be referenced.

Although wexist() treats a form as being a Window, "deactivate window" doesn't seem to work for closing forms.

Maybe Vladimir's class method is the only way to do this, but I'm not used to OOP, so this is non-intuitive for me!

Cheers

John
Dr. JW Faithfull
Curator in Geology
Hunterian Museum
University of Glasgow
Glasgow G12 8QQ
Scotland
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform