Oport Method
Description
Returns the state of the specified output bit.
Syntax
Function Oport (BitNumber As Integer) As Boolean
Function Oport (Label As String) As Boolean
Parameters
- BitNumber
An integer expression indicating the standard and extended output bits - Label
A character string indicating the output bit label.
Return Value
True if the specified output bit is on, False if not.
See Also
Off Method, On Method, OpBCD Method, Out Method, Sw Method
Oport Example
VB Example:
If m_spel.Oport(1) Then
m_spel.On(2)
End If
C# Example:
if(m_spel.Oport(1))
m_spel.On(2);