Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY with memo
Message
 
To
13/11/2014 13:36:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01610927
Message ID:
01610928
Views:
47
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform