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.
|
|
0
|
|
|
|
Reply
|
Reinhard
|
3/22/2010 3:29:51 PM |
|
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=A0am, Reinhard <reinharddor...@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 :
>
> =A0 =A0runmac =3D compress("%tst(" || svar || ")");
> =A0 =A0call execute(runmac);
>
> the macro is invoked before the call execute statement.
>
> The only way how to get around this, that I know of, is :
>
> =A0 =A0runmac =3D compress("%" || "tst(" || svar || ")");
>
> to split the % and the macro name.
>
> How do I mask this text string.
>
> Thx.
|
|
0
|
|
|
|
Reply
|
Tom
|
3/22/2010 5:11:27 PM
|
|