Message
From
12/04/2000 21:19:50
 
 
General information
Fórum:
Visual FoxPro
Category:
Formulários & Criador de Formulários
Miscellaneous
ID da thread:
00358869
ID da mensagem:
00359061
Views:
14
>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
Responder
Mapa
View