Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating
Message
 
To
01/02/2001 18:35:02
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00471533
Message ID:
00471536
Views:
22
>can anyone tell me how i can update the fields within an array ?
>
>FOR i = 1 TO FCOUNT()
>REPLACE ALL (FIELD(i)) WITH NVL(EVAL(FIELD(i)), GetEmptyValue(TYPE(FIELD(i))) )
>ENDFOR
>
>
>instead of using field of a table, i would like to use an array...

Arrays don't have fields they have elements. To update element values in an array I usually use a for loop like this.
for i = 1 to ALEN(laArray)
   laArray[i] = && some value
endfor
Rip Ryness
International Falls, MN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform