Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define Public Array problem
Message
 
 
À
08/03/2010 05:10:46
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01453125
Message ID:
01453134
Vues:
73
You're using wrong function. LEN(aclient) is the same as LEN(aclient[1]) and returns the length of the first item in the array. ALEN(aclient,1) will give you a number of rows in the array.

>Thanks for your reply,
>I have define the public array
>the client file have 100 records, but I check the len of array is only 5.
>why ?
>please advise
>
>
>PUBLIC ARRAY aclient[1]
>SELECT client_code FROM client INTO ARRAY aclient
>FOR x = 1 TO LEN(aclient)   
>       ? aclient[x]
>NEXT x
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform