From: Reinhard on
Hi,

I want to assign a variable a text string, which contains a %. Then
use call execute to call the macro.
When doing it like this :

runmac = compress("%tst(" || svar || ")");
call execute(runmac);

the macro is invoked before the call execute statement.

The only way how to get around this, that I know of, is :

runmac = compress("%" || "tst(" || svar || ")");

to split the % and the macro name.

How do I mask this text string.

Thx.
From: Tom Abernathy on
The simplest answer is to use single quote character rather than
double quote character.
call execute('%tst(' || svar || ')' );

For simple macros this will work well.


On Mar 22, 11:29 am, Reinhard <reinharddor...(a)gmail.com> wrote:
> Hi,
>
> I want to assign a variable a text string, which contains a %. Then
> use call execute to call the macro.
> When doing it like this :
>
>    runmac = compress("%tst(" || svar || ")");
>    call execute(runmac);
>
> the macro is invoked before the call execute statement.
>
> The only way how to get around this, that I know of, is :
>
>    runmac = compress("%" || "tst(" || svar || ")");
>
> to split the % and the macro name.
>
> How do I mask this text string.
>
> Thx.