Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text to a memo variable
Message
From
22/07/2008 19:08:15
 
General information
Forum:
Visual FoxPro
Category:
Contracts, agreements and general business
Miscellaneous
Thread ID:
01333203
Message ID:
01333338
Views:
13
This message has been marked as the solution to the initial question of the thread.
>Do you have any hint to make a text with a variable
>Or is it mandatory to store only in a memo ?

Try this....
#DEFINE CRLF   CHR(13)+CHR(10)
LOCAL lcTextVar AS String

lcTextVar = "This is the first Line of text"
lcTextVar = lcTextVar + CRLF + "This is the second Line of text"
lcTextVar = lcTextVar + CRLF + "This is the third Line of text"
lcTextVar = lcTextVar + " with appended text to the end of the line instead of adding a new line"
*-*  You can keep adding text content to lcTextVar -- at least upto your memory constraints

SELECT mytable
GOTO RECORD 1
REPLACE mytable.myfield WITH lcTextVar

=STRTOFILE(lcTextVar,"MyTextFile.txt")
Previous
Reply
Map
View

Click here to load this message in the networking platform