General information
Category:
Forms & Form designer
Barbara
Both form are modeless.
The first form calls the second form from a command button. "do form form1 name o124"
I was using a command button on the second form to check its windowstate by using (o124.windowstate). At this point I would get the error that it couldn't find o124.
I hate to appear stupid (or as Click and Clack my favorite car mechanics would say it is too late for that), but I really haven't worked with the screen form collection before.How do I run through the _screen.forms()collection?
for each oform in _screen.forms
????
endfor
Thanks in advance
Gaylen
>Gaylen,
>Is the second form a modal form? Are you calling your '124' form properties from another form? Is the form name variable visible from the place you're trying to refer to it or is it out of scope? (Bad grammar but I hope you understand!)
>
>You can always run through the _screen.forms() collection to find any open form. This may give you a hint as to why you don't see it when you expect to.
>
>HTH
>Barbara
>
>>If I call a form with 'do xxxx name 123' I can use '123.name' of property to access its properties. If I call a form from that form with "do xxx1 name 124 I can't access its properties with '124.name' of property. It states it cannot find 124.
>>
>>Is there a nesting limit with naming forms. Any suggestions.
>>
>>
>>Thanks
>>Gaylen
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only