Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to merge 2 arrays in 1 ???
Message
From
15/07/1997 11:29:53
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
 
To
15/07/1997 11:09:16
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00040005
Message ID:
00040018
Views:
24
>Actually I am asking this question again..
>
>I am using afields to get the structure of dbf's in array, I want to merge my arrays containing structures of diff. files into one array.
>
>Which is the best way to do this ??
>
>All suggestions/helps/advice are welcome...:)

Here's one way:

=ACOPY(Source1,Dest1,1,ALEN(Source),1)
nCnt = ALEN(Dest1) + 1
DIME Dest1(nCnt-1+ALEN(Source2))
=ACOPY(Source2,Dest1,1,ALEN(Source2),nCnt)

repeat

nCnt = ALEN(Dest1) + 1
DIME Dest1(nCnt-1+ALEN(Source3))
=ACOPY(Source3,Dest1,1,ALEN(Source3),nCnt)

etc.

Although I don't understand why you'd need to do this....Have you tried using COPY STRUCTURE EXTENDED ?

Matt
Matt McDonnell
...building a better mousetrap with moldy cheese...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform