Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating
Message
 
À
01/02/2001 18:35:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00471533
Message ID:
00471536
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform