Daniel,
thank you for this recommendation. I did'nt know about TEXTMERGE() function existence before your message. It this exactly the same as TEXT TO memvar TEXTMERGE command ?
>Andrus,
>Try TextMerge() instead:
>
>MyVar = TEXTMERGE("<<1+;
> 2+;
> 3+;
> 4>>")
>
>
>>>>I use VFP 7 TEXT TO myvar TEXTMERGE command.
>>>>
>>>>I need to split a long expression between << >> into multiple lines for
>>>>readability.
>>>>
>>>>However, the following program produces syntax error.
>>>>How to split expression into multiple lines ?
>>>>
>>>>
>>>>TEXT TO myvar TEXTMERGE
>>>><< 1+ ;
>>>>2>>
>>>>ENDTEXT
>>>>
>>>
>>>How about storing the expression to a memory variable, then doing something like:
<< eval(lcMemVar) >>
>>
>>Actually I have a number of complex expression.
>>Storing them to a forest memory variables makes my textmerge command
>>totally unreadable.
>>Is'nt there a simpler way ? Why semicolon caanot be used as continuation line
>>inside << >> ?
Andrus