Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text to a memo variable
Message
De
22/07/2008 19:08:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrats & ententes
Divers
Thread ID:
01333203
Message ID:
01333338
Vues:
12
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")
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform