I am using TextMerge on Memo Field in Foxpro 2.6 for Dos.

use customer
set textmerge on
a="/ Dear <<Name>>"
&a 'This will produce Dear Luqman

Now, I need to print result of &a to report, how can I save this result into
a table or cursor ?

Best Regards,

Luqman

Re: Passing Macro Output Value to a Variable or TextFile ? by Jack

Jack
Fri Jun 24 12:21:26 CDT 2005

On Fri, 24 Jun 2005 17:04:29 +0500, "Luqman" <pearlsoft@cyber.net.pk>
wrote:

>I am using TextMerge on Memo Field in Foxpro 2.6 for Dos.
>
>use customer
>set textmerge on
>a="/ Dear <<Name>>"
>&a 'This will produce Dear Luqman
>
>Now, I need to print result of &a to report, how can I save this result into
>a table or cursor ?

CREATE CURSOR xx (fld C(32))
INSERT INTO xx (fld) VALUES('&a.')


Re: Passing Macro Output Value to a Variable or TextFile ? by Bernhard

Bernhard
Mon Jun 27 04:28:10 CDT 2005

Hi Luqman

> I am using TextMerge on Memo Field in Foxpro 2.6 for Dos.
>
> use customer
> set textmerge on
> a="/ Dear <<Name>>"
> &a 'This will produce Dear Luqman
>
> Now, I need to print result of &a to report, how can I save this result into
> a table or cursor ?
Afaik there is no direct way in FPD to get the result into table or cursor.

The long way would be:

SET TEXTMERGE TO dummy.txt
SET TEXTMERGE ON
TEXT
....
ENDTEXT
\ ...
\\ ...
SET TEXTMERGE OFF
SET TEXTMERGE TO
APPEND MEMO yourMemo FROM dummy.txt

Regards,
Bernhard Sander