Hi,
I am extracting a Substring that is passed as argument to a macro and supplying that extracted string as name to a Procedure. Here it is

Macro Invokation:
Something String123
Something SString123

Inside Macro:

Something Macro

CharPos1 instr <Param1>, <1> ; Gets Position
if CharPos1 NE 0
PPP SubStr <Param1>,1,CharPos1-1
else
PPP CatStr <Param1>
endif

From this I extracted "String" and I am supplying this "String" as Name to the PROCEDURE. The "String" has to be substituted in palce of PPP when expanded.

PPP PROC
-
-
-
PPP ENDP

Something ENDP

But instead, PPP is defining as name of the Procedure. :mad:
Can Anybody suggest me how I can do this.
Thanks in Advance
Posted on 2003-07-28 08:38:51 by prasad_86
How about using @CatStr instead of CATSTR? Or defining PPP as a local to te macro? I have tested neither but it could work...
Posted on 2003-07-28 08:44:18 by QvasiModo

How about using @CatStr instead of CATSTR? Or defining PPP as a local to te macro? I have tested neither but it could work...

Thank U for UR Reply Mr. QvasiModo,
I got it in a different way. I Passed this PPP to another Macro and defined the PROC Name from that Macro Parameter.
Posted on 2003-07-28 09:16:07 by prasad_86