Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get an object ref to a form that is not active
Message
 
To
08/03/2001 08:32:29
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00483099
Message ID:
00483113
Views:
10
>I have 2 forms on my screen and I want to access another form whilst keeping the form I am on still active.
>
>I would also like to access form properties from the command window without having to use _screen.activeform, as is possible using class based forms.
>
>I realise that I could do this by using the forms collection of _screen and looping through it until I hit the name of the form I want, but hoped there was a more efficient way I am missing.
>
>If you are pretty sure there is no way to do this then let me know that as well:)
>
>Many Thanks

Hi Mark,

You should run your forms with the NAME clause.

DO FORM myForm1 NAME frm1
DO FORM myForm2 NAME frm2

Then you address your forms by frm1 or frm2 names.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform