Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting to properties on another open non MDI form.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00161616
Message ID:
00161668
Vues:
23
>Rich thanks. I will try this on monday. I only had two properties and I just went ahead and made them PUBLIC... I didn't want to but expediance is sometimes the better part of valor. ;} happy T-Day!
>
>>Joe,
>>
>>Look at the _SCREEN.FORMS() array. You can look at the following:
>>_SCREEN.FORMS(i).Name or any other property. The problem is if you DO a form it does not have the same name as the form that you ran in the _SCREEN object. It is a member of the _SCREEN but you refrerence it using the _SCREEN.FORMS() array. You can read the name out of the _SCREEN.FORMS().Name property and/or any other property after checking that you have the correct form in the array for reference. You could also set a variable reference to the form such as:
>>oForm = _SCREEN.FORMS(i)
>>
>>However, beware that setting a reference to a form object or anyother object will not allow that object to be released until the variable reference is released by either oForm = '' or oForm = .null.
>>
>>Rich


Why not use a named form?

do form form1 name form_a
do form form2 name form_b
do form form3 name form_c

You can then access the form objects with form_b.property.
John Harvey
Shelbynet.com

"I'm addicted to placebos. I could quit, but it wouldn't matter." Stephen Wright
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform