Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Thisform.aMyArray by reference
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00261669
Message ID:
00262415
Views:
20
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform