Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to select big chunk of memo fields (for excel)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01432865
Message ID:
01432898
Views:
63
>Hi all
>I generate an excel file by running SELECT into a cursor, then COPY TO.... type XL5.
>Since memo fields cannot go to excel, in every memo field i used left(mymemo,254)...Now the customer requested more data to be retrieved from those memo fields, so i now replaced those with LEFT(mymemo,1000). When running the query now, i get error 1903 "string is too long to fit". How can i fix this?
>
>TIA
>Jaime

Jaime,

You can not create Memo fields using LEFT functions - you may try using CAST function, e.g.

CAST(left(myMemo,1000) as M) as ShortenedMemo, ...

In order to produce the file you may use approach outlined by Cetin Basoz Re: Exported date to Excel won't format as date Thread #1399348 Message #1399394
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform