Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing form properties by reference to a procedure
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00162339
Message ID:
00162392
Views:
24
Indeed George,
Objects are always passed by reference, this comes in handy when creating an object as parameter object loaded with the parameter you like.
But I think you misunderstood me.
I was trying to pass an object's property by reference, where Fox insists on passing it by value. something like:

THISFORM.icProp1 = ''
THISFORM.icProp2 = ''

DO WITH THISFORM.icProp1, THISFORM.icProp2



PROCEDURE myProcedure
LPARAMETER tcArg1, tcArg2

tcArg1 = 'Some value 1'
tcArg2 = 'Some value 2'

ENDPROC

on return from this MyProcedure in the calling method. Have a look at the contents of thisform.icProp1 and thisform.icProp2.
You will see that they DON'T contain 'Some value 1', 'Some value 2' but still contain the empty character string.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform