Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUBSTR of a Memo field returns a Memo field?!
Message
From
06/07/2005 10:02:28
 
 
To
06/07/2005 09:11:32
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01029401
Message ID:
01029439
Views:
13
>Use a SQL statemetn, I was trying to break a Memo field into blocks of 250 characters, but when I used SUBSTR(MyMemo,1,250) I get another Memo field. If I use LEFT, it returns a Character field. I need to get about 10 blocks of 250 characters. This needs to be quick and easy, that's why I didn't try to do the OLE thing. Any thoughts?

Yes, before VFP9, the only function that preserve Memo datatype it is SUBSTR()
To force character conversion:
LEFT(MyMemo,250)
* or
SUBSTR(MyMemo,N,L)+''
Previous
Reply
Map
View

Click here to load this message in the networking platform