Actions

Difference between revisions of "Tmp statement"

From Zenitel Wiki

(New page: Event_Handler statement - Write Temporary Variable Format: '''tmp index "<string>" ''' Write ''<string>'' to temporary variable number ''index''. Temporary variables (strings) are nu...)
 
m
Line 3: Line 3:
 
Format: '''tmp index "<string>" '''
 
Format: '''tmp index "<string>" '''
  
Write ''<string>'' to temporary variable number ''index''. Temporary variables (strings) are numbered 0 to 9. Temporary variable lives only within the action string! Each variable is a text string, with maximum length of  126 characters  
+
Write ''<string>'' to temporary variable number ''index''.  
 +
 
 +
*Temporary variables (strings) are numbered 0 to 9.  
 +
*Temporary variable lives only within the action string!  
 +
*Each variable is a text string, with maximum length of  126 characters  
  
  

Revision as of 12:27, 17 July 2007

Event_Handler statement - Write Temporary Variable

Format: tmp index "<string>"

Write <string> to temporary variable number index.

  • Temporary variables (strings) are numbered 0 to 9.
  • Temporary variable lives only within the action string!
  • Each variable is a text string, with maximum length of 126 characters


Example:

tmp 0 "%sscan(%edi,connect)"   
if %tmp(0)
 $call L%scutf(%tmp(0), ,2) L%scutf(%tmp(0), ,4)   
endif

Temporary variables is read with EventHandler macro %tmp.

Back to Event_Handler#Statements.