Procedure CALL: - < proc_call >() ... [Pro]
Procedure CALL: |
||||||||||||||||||||||||||||||
This command executes a procedure defined using "proc_def_begin" ... "proc_def_end" commands. When calling a procedure, it is always necessary to pass expected parameters (as they are defined in the "proc_def_begin" command). If a parameter is defined as a reference (see "proc_def_begin" help section for details) then it is necessary to pass an exisitng variable name as the parameter. |
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
Example (Macro Steps):
|
||||||||||||||||||||||||||||||
|
Example (Plain Text):
<#> This example shows how to use procedures
<cmds>
<proc_def_begin>(AddQuotes,"parStringInput", "&parStringOutput&")
<varset>("parStringOutput=%_vQuoteChar%%parStringInput%%_vQuoteChar%","")
<proc_def_end>
<proc_def_begin>(ConvertToUpper,"parStringInput","&parStringOutput&")
<var_oper>(parStringOutput,"%parStringInput%",STR_UPPER,"2","", "0")
<proc_def_end>
<varset>("vMyText=","Insert text you want to convert to upper case and enclose to quotes:")
<if_str>("_vCanceled==1")<#>
<exitmacro><#>
<endif>
<proc_call>(ConvertToUpper,"%vMyText%", "vMyText" )
<proc_call>(AddQuotes,"%vMyText%", "vMyText" )
<msg>(-100,-100,"%vMyText%","Result",1,0,0,0)