Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically Sizing Arrays
Message
 
To
31/05/2001 18:04:24
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00513486
Message ID:
00513711
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform