Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mail merge from tokenized memo field
Message
De
23/02/2002 17:38:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00624166
Message ID:
00624171
Vues:
12
Hi Sergey,
That is pretty much what I thought but it didnt appear to work as implemented so far <g>

In the report field I call a function 'myfunc(file.memo)' which does execute.
The function takes the 'parameter pMemo' and equates a new variable to it 'dlcwork = pMemo'.
Then I 'STRTRAN(dlcwork, '##CUSIP##', 'TESTING')'
When the 'return dlcwork' is sent back as a result the printout still shows the ##CUSIP## instead of 'TESTING'.

Any thoughts?

Thanks!


>You can use Strtran function.
lcMemo = "Dear So and so, your ##CUSIP## is being called on ##CALLDATE##."
>lcCusIp = "Something"
>lcCallDate = DTOC(DATE())
>? STRTRAN( STRTRAN( lcMemo, "##CUSIP##", lcCusIp ), "##CALLDATE##", lcCallDate )
>
>
>>I am stumped on what approach to use.
>>
>>Stored in a memo field is a form letter with embedded macro symbols that need to be filled in at report time.
>>
>>Something like this.
>>//start of memo content
>>Dear So and so, your ##CUSIP## is being called on ##CALLDATE##.
>>//end of memo content
>>
>>So how would I convert the ##CUSIP## and ##CALLDATE## with the proper value in the report detail?
>>
>>Thank you kindly!
>>
>>*"Always do right - this will gratify some and astonish the rest."(Mark Twain)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform