Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing array as parameter to a form
Message
From
12/04/2000 21:19:50
 
 
To
12/04/2000 14:56:42
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00358869
Message ID:
00359061
Views:
9
>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"
>

Yep - RTFPD - DO...WITH passes by reference by default, and you can't use @ in the syntax of DO FORM - there are lots of solutions, such as marke a class out of it, or rely on the fact that the pass by ref default handles the whole problem.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform