Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question: returning memo column in cursor
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Question: returning memo column in cursor
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01557684
Message ID:
01557684
Views:
62
Is there a workaround for returning Memo column in a cursor like the one below?
SELECT PADR(category_id, 255) FROM product_category
INTO CURSOR or INTO ARRAY makes no difference.

Through using UNION ALL I was able to create Memo column in the resulting cursor. Still failed to fill that column with anything longer than 254 characters. Neither PADR() nor inline function worked.

The function below perfectly works as a stand-alone. Once placed in SQL SELECT statement, it causes "String is too long to fit" error.
FUNCTION GetLongString(cSource)
RETURN PADR(cSource, 255)
Next
Reply
Map
View

Click here to load this message in the networking platform