Algo asim como:
MinhaCarta = CampoMemo
MinhaCarta = strtran(MinhaCarta, "(Cliente)", CampoCliente)
MinhaCarta = strtran(MinhaCarta, "(RegNum)", CampoRegNum
MinhaCarta terá o conteúdo modificado.
Hilmar.
>I have a dbf file with the fields
>
> Client
> Reg_numb
> Etc.
>
> How can I make a simple letter using the variables (fields)
> to a txt field of the same record.
> The letter will be the body of a e-mail
>
> ************
> Dear (Client)
>
> Your postage is already on the way
> Your registration number is (reg_numb)
> Thanks
>
> *************
>
> I would like if possible, to control which line to
> put the phrase, in order not to mess the letter.
>
> Moses
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)