Can someone remind me how it works this nested macro?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can someone remind me how it works this nested macro?

Luca Meyer
*////////////////.
DEFINE !gruppo (v=!TOKENS(1) /t=!TOKENS(1)).

!TABLE1 var=!v order=D key=COUNT title="TABELLA !t" caption="PENETRAZIONI
PER COLONNA - DATI PONDERATI" filter=!v<>"".

!ENDDEFINE.
*////////////////.

What it doesn't work is the !t within the nested macro, what I would need is
that when I call the macro with

!gruppo v=MN01_V2 t=181.

the title parameter should takes the value "TABELLA 181" and not "TABELLA
!t"

Thank you,
Luca
Reply | Threaded
Open this post in threaded view
|

Re: Can someone remind me how it works this nested macro?

Frederic Villamayor Forcada
Luca

Substitute "TABELLA !t" by !QUOTE(!CONCAT("TABELLA ", !t))

This is untested, but it should work. Macro parameters (!t) are not
expanded when they are into a string. In the present case, what you must
do is concatenate "TABELLA " and !t, and then quote the resulting string.


HTH


Frederic

Frederic Villamayor
Researcher
Biostatistics Unit
Juan de Sada, 32
08028 Barcelona
Tel    +34 935093236
Fax   +34 934112764
[hidden email]
http://www.ferrergrupo.com 

Este mensaje, y en su caso, cualquier fichero anexo al mismo, puede
contener información confidencial, siendo para uso exclusivo del
destinatario, quedando prohibida su divulgación, copia o distribución a
terceros sin la autorización expresa del remitente. Si Vd. ha recibido
este mensaje erróneamente, se ruega lo notifique al remitente y proceda a
su borrado. Gracias por su colaboración.

This message and its annexed files may contain confidential information
which is exclusively for the use of the addressee. It is strictly
forbidden to distribute copies to third parties without the explicit
permission of the sender. If you receive this message by mistake, please
notify it to the sender and make sure to delete it. Thank you for your
kind cooperation.




Luca Meyer <[hidden email]>
Enviado por: "SPSSX(r) Discussion" <[hidden email]>
22/03/2007 15:35
Por favor, responda a
Luca Meyer <[hidden email]>


Para
[hidden email]
cc

Asunto
[SPSSX-L] Can someone remind me how it works this nested macro?






*////////////////.
DEFINE !gruppo (v=!TOKENS(1) /t=!TOKENS(1)).

!TABLE1 var=!v order=D key=COUNT title="TABELLA !t" caption="PENETRAZIONI
PER COLONNA - DATI PONDERATI" filter=!v<>"".

!ENDDEFINE.
*////////////////.

What it doesn't work is the !t within the nested macro, what I would need
is
that when I call the macro with

!gruppo v=MN01_V2 t=181.

the title parameter should takes the value "TABELLA 181" and not "TABELLA
!t"

Thank you,
Luca