Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array as parameter to a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00358869
Message ID:
00358878
Views:
12
>Looks like I can't do it. As soon as I put the little by @ sign in front of a parameter the form gives me a syntax error.
>That is if the init of "myform" start with
>
>LPARAMETERS ra_array
>
>
>and my app has the following commands:
>
>
>DIME la_array[2]
>la_array[1]="A"
>la_array[2]="B"
>DO FORM MYFORM WITH @la_array
>
>
>I get a response "syntax error"
>
>Work arounds of the top of my head include declaring the array privates (ugh) so it does not have to be passed as a parameter, or creating a cursor that will be visible to the form.
>
>However, maybe there is some simple way of passing an array as a true parameter to a form. If anyone knows of one...

You don't need to use the @ symbol. Any DO command passes by reference.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform