Multitech MTCBA-G-UF1 Specifications Page 38

  • Download
  • Add to my manuals
  • Print
  • Page
    / 40
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 37
Chapter 10. Case Studies
Sub PrintTrigger( objTrigger )
WScript.Echo "TRIGGER ID: " & objScript.ID
WScript.Echo " Enabled: " & objScript.Enabled
WScript.Echo " ProcessingOrder: " & objScript.ProcessingOrder
WScript.Echo " Description: " & objScript.Description
WScript.Echo " Condition: " & objScript.Condition
WScript.Echo " Script: " & objScript.Script
End Sub
9.12. ‘Trigger’ object
Properties:
Property Type R/W Description
ID Number R Database record key
Description String RW Trigger’s friendly name
Enabled Boolean RW Specifies if triggered is enabled or not.
ProcessingOrder Number RW Trigger priority. Value must be in range
[1..99]. The Trigger with the highest
priority will be evaluated first.
Condition String RW Indicates and SQL-like condition. If the
condition is matched, the script will be
run.
LastError Number R Completion code of the last called function
Functions:
Function Parameter(s) Description
Clear None Clear all properties
Load TriggerID (Number) Load Trigger from the configuration database
into the object
Save None Save Trigger properties into the
configuration database
Delete ChannelID (Number) Remove a Trigger from the configuration
database
Example:
' Load a Trigger, change some properties and save it
Set objTrigger = CreateObject( "AxSmsServer.Trigger" )
objTrigger.Load( 1 ) ' Load Trigger 1
WScript.Echo "Load, result: " & objTrigger.LastError
If(objTrigger.LastError = 0 ) Then
objTrigger.Description = "new description"
Page view 37
1 2 ... 33 34 35 36 37 38 39 40

Comments to this Manuals

No comments