Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Has an object been instantiated?
Message
 
 
To
16/04/1998 14:47:47
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092641
Message ID:
00092647
Views:
23
>>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!


Thanks I'll give that a try!
Kevin Scott
kehvn@carolina.rr.com


Hey! It's not my fault. It's some General named Protection!
Previous
Reply
Map
View

Click here to load this message in the networking platform