Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get an object ref to a form that is not active
Message
 
À
08/03/2001 08:32:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00483099
Message ID:
00483113
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform