Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing form property by reference
Message
 
To
10/07/1998 16:33:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00116288
Message ID:
00116379
Views:
19
>On the other side of this question is: how do you return a property of a form that is an array? I've tried a lot of combinations and can't seem to get this.

Mark,

Again you cannot return an array, however you can use a parameter object that has an array property in it. For example lets say I have a class named Parms that has a property named aArray in it, I can;
loObj = CreateObject("Parms")
DIMENSION loObj.aArray(2)
loObj.aArray(1) = "ABC"
loObj.aArray(2) = "DEF"
DO FORM Whatever WITH loObj
In the Init of the form I receive LPARAMETERS poParms and store it to a property of the form. I can manipulate the properties of that parm object in the form and when the form releases the parm object will contain the values that the form put init.
Previous
Reply
Map
View

Click here to load this message in the networking platform