Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing errors when passing an array to a procedure
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00291398
Message ID:
00291440
Views:
21
>When building an EXE, I'm receiving errors when passing arrays to procedures/functions/forms.
>
>This will cause an error when compiling:
>DIME laMyArray[1]
>MyProcedure(@laMyArray)
>
>PROCEDURE MyProcedure(aMyArray)
>

Add an EXTERNAL ARRAY statement here:

EXTERNAL ARRAY aMyArray

to tell the compiler that you don't define the array inside the procedure.

>RETURN
>
>How can I prevent these type of errors from occuring?
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