>SOOORRRRYYYYYY
>
>I missed the fact that you are still in DOS...
Textmerge works in FPD2.6, just not into a variable. You can redirect it into a file, and BTW the handle is in the system variable _text, so you can mix fwrite(_text, "any text") with your textmerge, and it'll still work.
With a few changes to stream the text into a file, your code should work in FPD2.6 just the same as it would now... i.e. it'll complain about the
+alltrim().
>>>Try
>>>
>>>
>>>
>>>
>>>
>>>TEXT TO xxx NOSHOW TEXTMERGE
>>> Summary of application :<<+alltrim(xdesc)>>, included in file
>>> <<thisziph>> downloaded on <<dtoc(date())>>
>>> ...
>>>
>>> ********************************************
>>> * The above application contains : *
>>> * Passenger records :<<+str(tnumber,10,0) >> : *)
>>> * Total fare :<<str(tfare,10,0)>> pence *
>>> ... etc
>>>
>>>ENDTEXT
>>>
>>>
>>>
>>>It works like a charm!
>>>any foxprocommand works between the chevrons (<<>>)
>>>
>>>Peter