ID : 9256
EnableSwState
Function
To return the state of the enabling switch.
Syntax
EnableSwState
Return value
The state of the enabling switch is returned by Integer type data.
| State of the enabling switch | Return value |
|---|---|
| ON | 1 |
| OFF | 0 |
Description
This command returns the state of enabling switch by Integer type data.
Related Terms
Attention
Enabling switch is never turned on under the use of simulation function.
Example
'!TITLE "Acquiring the enabling switch state"
' Enter the enabling switch state in aaa
Sub Sample_EnableSwState
Dim aaa As Integer
' Acquire the enabling switch state and enter the state in aaa
aaa = EnableSwState
' Display the enabling switch state in the message output window
PrintDbg aaa
End SubID : 9256

