>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
? _SCREEN.ActiveForm.Caption
? _SCREEN.ActiveForm.BaseClass
? _SCREEN.ActiveForm.Name
? _SCREEN.Forms(5).Caption
? _SCREEN.Forms(5).Name
hth,
George
Ubi caritas et amor, deus ibi est