Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combining Arrays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00219637
Message ID:
00219646
Vues:
37
>I need to combine 2 arrays that have the same structure. does anyone have a relatively simple solution. This is an archive routine that creates a file name based on the current date then looks in a directory for a file named the same, if found, a letter suffix is added to the file name. I use lnAnum=ADIR(laAuto,"A*.dbf") and lnMnum=ADIR(laMan,"M*.dbf")to create the arrays, with no luck in combining them so i do not have to loop through both separately looking for a file.

Create a CURSOR with the necessary structure, do an APPEND FROM ARRAY to add the content from each ADIR() result, and then use a SQL Select to a target array to extract them. you cna use the cursor to sort things while you're at it during the SQL Select to extract the combination.

>Thanks in advance, Chuck
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform