Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting object references to forms
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00382212
Message ID:
00382224
Vues:
17
In that case use DO FORM formname NAME oFormName - this will give you an object reference variable of oFormName - here you can query oFormName.Name to return the form's name.

You could also use an array element for the object reference but this will have to exist already.

>That was quick. What I am trying to do may not be worth doing this way, but I'd like to know if it's possible. Part of the idea here is not to have to redo my whole application. I figure there have to be uses for the hypothetical functions I'm looking for. The function I have given has already proved useful to me.
>
>>The best way to do this would be to save your forms as classes and use CreateObject or NewObject to create an instance of your form.
>>
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform