Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Thisform.aMyArray by reference
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00261669
Message ID:
00262415
Vues:
19
Hi Jim,

Right, that is how I do it between forms (actually I use an object for the parameter:) Paul's original problem was with passing a specific property as a parameter to a method on the SAME form.

Macro expansion seems to be a good way do it. What do you think? Is there a better way?

>Roi,
>
>This would be much easier and cleaner, pass a reference to the object instead;
>
>DO FormB WITH Thisform
>
>In the formB Init you can;
>
>LPARAMETERS poForm
>Thisform.oForm = poForm && oForm is a custom property of the form.
>
>Then anywhere you like within FormB you can;
>
>Thisform.oForm.AArray(1,2) = "ABC"
>
>And this gives you access to all the properties of FormA within FormB
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform