Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement