Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Has an object been instantiated?
Message
From
16/04/1998 14:47:47
 
 
To
16/04/1998 14:41:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092641
Message ID:
00092643
Views:
24
>Does anyone know of a way to tell if an object has been instantiated? In particular I am working with a form that may or may have other forms running behind it. How can I tell if those other forms are instantiated or not?? Is there a function similar to WEXIST() for objects? I thought about displaying memory to an array and ascaning it for the form name but it seems cumbersome and I was hoping an easier way might exist!
>
>AHWBA!
>
>Kevin

_SCREEN.FormCount = Number of open forms including toolbars
_SCREEN.Forms(n) = A collection (array) of open forms.

FOR i = 1 TO _SCREEN.FormCount
IF _SCREEN.Forms(i).Name="MAIN"
WAIT WINDOW "Hey...there's a form with the name 'NAME' open"
EXIT
ENDIF
ENDFOR

Hope this or some permutation of this helps!
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform