Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Define Public Array problem
Message
 
 
To
08/03/2010 05:10:46
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01453125
Message ID:
01453134
Views:
72
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform