Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUBSTR of a Memo field returns a Memo field?!
Message
 
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:
01029405
Views:
11
Hi Jay. I believe that using TRANSFORM() would solve this. -Kelly
CLEAR

CREATE CURSOR junk ( junk m )
INSERT INTO junk VALUES ( REPLICATE( "X", 5000 ) )

* This way gets a memo column
SELECT SUBSTR( junk, 1, 250 ) AS junk FROM junk
LIST STRUCTURE 

* This way gets a character column
SELECT TRANSFORM( SUBSTR( junk, 1, 250 ) ) AS junk FROM junk
LIST STRUCTURE 
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform