Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MLINE(comment,1) in cursor truncates memo field
Message
From
02/03/1999 07:35:46
Bob Tracy
Independent Consultant
Driftwood, Texas, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00192872
Message ID:
00193074
Views:
20
>>If I do this:
>>SELECT MLINE(comment,1) FROM hdefects INTO CURSOR curTemp WHERE .....
>>I get the first few characters of the memo line but not the entire line. SET
>>MEMOWIDTH doesn't seem to have anything to do with the length of the returned
>>line. What am I overlooking? TIA
>
>You're probably overlooking the fact that the first returned line in a SELECT statement determines the field width for the rest of the lines.
>
>Try SELECT PADR(MLINE(comment, 1), SET('MEMOWIDTH')) AS comment...

Thanks Garrett, that worked fine. I had tried using the _MLINE system variable as the second parameter but that didn't do the trick. Appreciate the help from both you and John.
Bob Tracy

Never engage in a battle of wits if you're only half armed.
Previous
Reply
Map
View

Click here to load this message in the networking platform