MemSw Method
Description
Returns the specified memory I/O bit status.
Syntax
Function MemSw (BitNumber As Integer) As Boolean
Function MemSw (Label As String) As Boolean
Parameters
- BitNumber
An integer expression indicating one memory I/O bit - Label
A string expression indicating the memory I/O bit label.
Return Value
True if the specified memory I/O bit is on, False if not.
See Also
In Method, InBCD Method, MemIn Method, Sw Method, Off Method, On Method, Oport Method
MemSw Example
VB Example:
If m_spel.MemSw(10) Then
m_spel.On(2)
End If
C# Example:
if (m_spel.MemSw(10))
m_spel.On(2);