Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A question about arrays
Message
De
04/01/2000 07:22:28
 
 
À
04/01/2000 04:50:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00312237
Message ID:
00312260
Vues:
16
>i wrote the sample code below in a prg that i put in a project. it is the only file of the project.
>When i want to generate the EXE, i obtain a message that xtab could not be localized. I do not know why.
>
>could someone help me.
>
>dimension xt(10)
>afill(@xt,"")
>
>****************
>FUNCTION AFILL()
>****************
>PARAMETERS xtab,xj

You need an EXTERNAL ARRAY statement to tell the compiler to treat xtab as an array.

>local xi
>for xi=1 to alen(xtab)
> xtab(xi)=xj
>next
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