3. Statements : OpenROAD Language Statements : Callproc Statement : Example—Callproc Statement
 
Share this page                  
Example—Callproc Statement
Call the OpenROAD procedure, addtax, passing the taxpercent variable by value and the price variable by reference:
callproc addtax(tax = taxpercent, total = byref(price));
Because price is passed by reference, the procedure can update its value by adding the tax amount. The new total price is visible to the calling frame or procedure after the addtax procedure returns.