Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Merging Arrays?
Message
From
06/11/2001 14:14:03
 
 
To
06/11/2001 13:30:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00578130
Message ID:
00578154
Views:
21
>Anyway to merge two arrays without stepping through all of the elements-- i.e. without having to step thru array1 to get the row's value, redimensioning array2 to hold another row, and then inserting the row from from array1 into array2?
>
>I want to merge separate arrays that hold directory listings of .dbf files. Each array has a list of all of the .dbf files in a specific directory and I want to merge them all into one array to show in a list box.

How about something like

Create a cursor to hold the values
Append from each array
Copy to the final array

This may not work for you because the source and target arrays have to be two dimensional but it eliminates the need to know and keep track of the number of elements involved.

...Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform