Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically Sizing Arrays
Message
 
À
31/05/2001 18:04:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00513486
Message ID:
00513711
Vues:
15
Keith,

No one has mentioned acopy(), that seems very useful here.
Let us suppose you want to add rows from current cursor to existing array A1.
Then you can do it as follows:
*-----------------
ln=alen(a1)
copy fields for &condition to array ajoin
*redimension array A1 to make room for ajohn
dime a1[alen(a1,1)+_tally, alen(a1)/alen(a1,1))
* concatenate two arrays
acopy(ajohn, a1, 1, alen(ajoin),ln+1)
*--------------------------------

Yuri
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform