Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Array by Reference to a Form vfp6
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00659071
Message ID:
00659077
Views:
25
With DO FORM all parameters are passed by reference. To pass parameter by value enclose it in parenthesis.
DO FORM AddSamp WITH (lcSample), (lnReps), (lnPackages), 3, (lcProcess), lcTemp
>DO FORM AddSamp WITH lcSample, lnReps, lnPackages, 3, lcProcess, @lcTemp
>
>I get an error. My objective is to pass by reference all the variables except lcTemp. The form has a listbox and whatever is selected in that listbox is returned back to the calling form. However, I get an 'command cotains an unrecognized command word/syntax' error.
>
>1) Can I mix pass by value and pass by reference in the WITH clause of the DO FORM?
>
>2) How do I get AddSamp (a form) to return an array containing all the items selected from its combo box? I can get all the selected items into an array, without a problem, but I can't return it. And I can't pass an array by reference in the parameter list (see above) without getting an error...
>
>matt
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform