Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Properties or Form Collection
Message
 
 
À
06/06/2009 04:30:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01313565
Message ID:
01404303
Vues:
69
>>Tore,
>>
>>Can you elaborate a bit on this idea?
>>
>>local loParameter
>>loParameter = createobject('parameterX')
>>loParameter.AddProperty('arrRecords[1]')
>>do form myForm with loParameter
>>
>>thisform Init
>>
>>lparameters loParam
>>thisform.oParam = loParam
>>
>>Somethere in the form we set the properties
>>
>>would the new array be available this way after we close the form?
>>
>
>Yes.
>
>>Also what should we do with the reference in the form? Or should we return the object back?
>
>No need, because it's a "reference type", i.e. m.loParameter and Thisform.oParam are references to the very same object in the "heap".
>So that whenever you assign content to any of the properties of Thisform.oParam, then the corresponding m.loParameter property immediately contains the same value.
>
>
>
>hth
>-Stefan

Thanks, I'll try it.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform