To add to John's suggestions, I've had pretty good results working with SET TEXTMERGE and the corresponding \ and \\ commands to create a file that can then be copied to a printer. Also you can use STRTRAN to replace a variable with a value. For example, use double angle brackets for your variables in your memo field, then do something like this to print it out:
cTextLine = strtran( cTextLine, '<<Name>>', mytable.cName)
\<<cTextLine>>
>Hi,
>
>How should I go about creating letters from a 2.6 DOS application?
>
>I want to get customer name, address etc. from the current record,
>then open an editing window to compose the txt of the letter, then
>to print it out. The letter need not be saved. I find working with memo fields in 2,6 DOS rather cumbersome, in VFP5.0 they work just great, of course...
>
>I don't need detailed code, just a few pointers to the right approach.
>
>Rolf
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.