Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy stru command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00186818
Message ID:
00186827
Vues:
11
>>>Is there a way to have dbf1 have dbf2's structure appended to it?
>>>thanks.
>>
>>I don't know of a single command (a la COPY STRU) to do it, but you can do it pretty readily with AFIELDS() commands and array manipulation commands.
>>
=AFIELDS(Struc1Arr, "Table1")	&& Not sure about quotes
>>=AFIELDS(Struc2Arr, "Table2")
>>then code to concatenate the second array onto the first, create a table from it using CREATE Table3 FROM ARRAY Struc1Arr, and APPEND FROM Table1 if you wanted the records besides the structure.
>
>Wish I'd waited. Ed's answer is better, using COPY STRU EXTENDED.


That may be, but yours didn't have any stupid typos in it!

Ed
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