Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass property by reference?
Message
 
To
31/01/2005 16:50:59
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00982472
Message ID:
00982475
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>Is there are way to pass a form property to a function/method by reference? I have an array property that I need to pass to a method on a different class. Using @Thisform.aMyArray fails, so I'm currently copying the array to another variable before passing it to the method, but if there's a better way, I'd prefer to use it.
>
>Thanks.

Just pass thisform as a Parameter, & then use
parameter_form.aMyArray...

Soemething like:
SomeFunction(thisform)


FUNCTION SomeFunction(oForm)

oForm.aMyArray[15] = "blabla..."

RETURN ""
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform