Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalents for WONTOP() etc?
Message
From
27/06/1999 23:49:36
 
 
To
27/06/1999 19:19:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00234472
Message ID:
00234619
Views:
28
Harry ---

I used _SCREEN.ActiveForm.Name instead of the old WONTOP() but I must confess I still use WEXIST(). It's just more convenients than scanning through the _SCREEN.Forms() collection.

And BTW, a collection is nothing more fancy than an array attached to an object.



>>Hi Harry,
>>
>>Perhaps I'm not quite understanding want you're asking, but here's a small sample of what you can access from either the _screen or forms collection.
>>? _SCREEN.FormCount && the number of currently active forms.
>>? _SCREEN.ActiveForm.Caption
>>? _SCREEN.ActiveForm.BaseClass && the base class name
>>? _SCREEN.ActiveForm.Name
>>* Assuming multiple forms (5 in the example).
>>? _SCREEN.Forms(5).Caption && The caption of the form at the bottom of the z order
>>? _SCREEN.Forms(5).Name
>>hth,
>
>
>Apologies. I appear to be in dork mode. The above looks like it will do the trick, but even easier is using the very functions I was screaming for an equivalent (of). WONTOP() works ferchrissake! And so do all the others. It just hadn't occurred to me to try them with forms!
>
>Having said that, the examples you've just given finally make sense of the 'activeform' handle which I was having trouble with.
>
>Many thanks
>
>Harry
------------------------------------------------
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