>Fabio
>Thanks for your reply.
>
>>You cannot put a CHR(13) into a literal string.
>So I've discovered.
>
>>Uses a binary:
>>lcFldVal2 = "Line 1" + 0hD + "Line 2"
>Never thought of using binary.
>
>To make it work I've had to use CREATEBINARY()
>lcFldVal2 = ["Line 1" + CREATEBINARY(CHR(13)) + "Line 2"]
>Is this what you meant?
>
>
>>Why to use a EXECSCRIPT for this simple task ?
>>Direct syntax is more efficient:
>>fieldName1 = "cText"
>>fieldName1 = "mText"
>>INSERT INTO (lcTbl) ((fieldName1),(m.fieldName2) VALUES (lcFldVal1,lcFldVal2)
>Point taken.
>
>Gordon
What is wrong with:
lcFldVal2 = ["Line 1" + CHR(13) + "Line 2"]
or you might:
text to m.lcFldVal2 noshow
Line 1
Line 2
Line 3
endtext
PS:Do not insist on ExecScript for this or it'd catch you sooner or later.
Cetin