Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to modify only a line in memo field programmatically
Message
From
12/09/1998 21:52:16
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00135875
Message ID:
00135881
Views:
9
>For one, you could use StrTran() function to change a particular string in a memo field to a different string value. You could also use memlines() and mline() functions to loop through the lines in a memo field to programmatically rebuild a memo field to a variable then replace the memo field with the variable.

Also SUBSTR(), LEFT(), RIGHT() and all the other character string functions.

>To add lines with carraige returns, experiment with adding Chr(10) and/or chr(13) to the end of each line you add to a memo field. I don't think you will need to add chr(10).

It's better to use them both. CHR(10) is the line feed character and many programs/systems are looking for this character as line terminator.

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform