GetIODef

用於取得輸入、輸出和記憶體I/O的位元、位元組和字組的I/O標籤和註釋。

格式
GetIODef類別, 索引, ByRef標籤, ByRef註釋

參數

  • 表示I/O類型的整數值

    • 1: InputBit
    • 2: InputByte
    • 3: InputWord
    • 4: OutputBit
    • 5: OutputByte
    • 6: OutputWord
    • 7: MemoryBit
    • 8: MemoryByte
    • 9: MemoryWord
    • 10: InputReal
    • 11: OutputReal
  • 索引:表示位元或連接埠編號的整數值

  • 標籤:用於指定取得指定類型和索引對應的標籤的字串變量。

  • 注釋:用於指定取得指定類型和索引對應的注釋的字串變量。

說明
取得各I/O點的標籤或注釋。

參照

IONumber函數、IODef函數、IOLabel$函數、SetIODef

GetIODef範例

  String strLabel$
  String strDescript$

  GetIODef 1, 0, ByRef strLabel$, ByRef strDescript$
  Print "InputBit 0: Version = " + strLabel$
  Print "InputBit 0: Description = " + strDescript$