Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I add text to an empty memo
Message
From
09/09/2003 19:36:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00827699
Message ID:
00827702
Views:
14
>I need to prepend a text string to a memo field. The routine works perfectly as long as the memo isn't empty. When it is, no text is added. What am I missing? Do I need to add an EOF character to the string? If so, what CHR() value is it?

I would just use:
REPLACE MemoField with SomeContents
To add to the beginning of the previous contents, you can add a new line with chr(13) + chr(10):
replace MemoField with SomeContents + chr(13) + chr(10) + MemoField
HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform