IntelliCAD 11.1 Object Library | |
SysVarChanged Event | |
See Also |
- SysVarName
- The name of the system variable.
Application Object : SysVarChanged Event |
Description
Syntax
Visual Basic |
---|
Public Event SysVarChanged( _ ByVal SysVarName As String _ ) |
Parameters
- SysVarName
- The name of the system variable.
Example
The following example illustrates using the SysVarChanged event with an Application object. To use the SysVarChanged event with a Workspace object, you do not need to initialize the App variable.
Public WithEvents App As Application
Sub init()
'To receive and handle events from IntelliCAD, first initialize the App variable.
Set App = ThisWorkspace.Application
End Sub
'Event handler
Private Sub App_SysVarChanged(SysVarName, NewVal)
' This example receives an Application SysVarChanged event.
' This event occurs when a change is made to the value of a system variable.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Change the value of a system variable.
MsgBox "A change was made to a system variable."
End Sub