将带有 % 符号的整数 DataValue% 传递给函数是什么意思?这与没有“%”的情况下仅传递有什么不同
另外,传递 PortNum% 与 PortNum 是什么意思?
Private Sub WritePortValue(ByVal DataValue As Integer)
' write the value to the output port
' Parameters:
' BoardNum :the number used by CB.CFG to describe this board
' PortNum& :the output port
' DataValue% :the value written to the port
ULStat& = cbDOut(BoardNum, PortNum&, DataValue%)
If ULStat& <> 0 Then
Stop
Else
lblShowValOut.Caption = Format$(DataValue%, "0")
End If
End Sub