Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing errors when passing an array to a procedure
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00291398
Message ID:
00291440
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform