Actions

Difference between revisions of "Tmp statement"

From Zenitel Wiki

(Updated link)
Line 22: Line 22:
  
 
Back to [[Event_Handler#Built-In Action Commands]].
 
Back to [[Event_Handler#Built-In Action Commands]].
 +
 +
[[Category:Event Handler]]

Revision as of 15:42, 17 August 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
  • Temporary variables are read with EventHandler macro %tmp.


Example:

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


Back to Event_Handler#Built-In Action Commands.