InW方法
描述
傳回指定輸入字元埠的狀態。每個字元埠包含16個輸入位元。
語法
Function InW (PortNumber As Integer) As Integer
Function InW (Label As String) As Integer
參數
- PortNumber
代表輸入埠的整數 - Label
包含輸入字元標籤的字串運算式。
傳回值
介於0至65535的整數值,代表輸入埠
另請參閱
In方法, InBCD方法, Out方法, OpBCD方法, Sw方法
InW範例
VB 例:
Dim data As Integer
data = m_spel.InW(0)
C# 例:
int data;
data = m_spel.InW(0);