Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Equivalents for WONTOP() etc?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00234472
Message ID:
00234541
Views:
23
>Greetings George
>>
>>Look at the _SCREEN system variable, specifically the ActiveForm property and the Forms collection.
>
>tried it but this doesn't seem to give me what I need, although I'm not sure I even understand the 'collection' property so it may still contain the answer.
>
>I need to know, for example, if any forms are active and if so, what are there names. I don't see any way of getting at that data from the _screen variable or any 'activeform' property unless you already know the name of the open form which, by definition, I won't.
>
>
>The 'Wontop()' function does exactly what I need but only for windows rather than forms...
>
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,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform