Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY with memo
Message
 
À
13/11/2014 13:36:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01610927
Message ID:
01610928
Vues:
46
>Hi All:
>
>How can I COPY to another table, FOO, but handle the memo fields in the following possible ways:
>
>1. Exclude any memo fields
COPY TO Foo FIELDS EXCLUDE MemoFieldName
>2. Convert the memo fields to character fields in the output table and just copy the first 255 characters
SELECT FieldListWithoutMemo, CAST(MemoFIeld AS C(255)) AS MemoFieldName INTO CURSOR crsTest
COPY TO Foo
>
>I realize I can do this with some programming, but is there a simpler way?
>
>Why do I want to do this?
>
>Because I want to COPY to a text file for a user and also provide the user with the structure of FOO that matches the text file. I've discovered that VFP ignores memo fields when COPYing to a text file.
>
>Thanks,
>
>Yossi
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform