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
>>? _SCREEN.ActiveForm.Caption
>>? _SCREEN.ActiveForm.BaseClass
>>? _SCREEN.ActiveForm.Name
>>* Assuming multiple forms (5 in the example).
>>? _SCREEN.Forms(5).Caption
>>? _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