📄 module.bas
字号:
'
' VBA (EXCEL/ACCESS/WORD) Module Code
'
Const Port = COM1
Function OpenPort ()
Dim Code As Integer
Code = SioReset(Port, 512, 512)
Code = SioBaud(Port, Baud9600)
Code = SioParms(Port, NoParity, OneStopBit, WordLength8)
Code = SioDTR(Port, SET_LINE)
OpenPort = Code
End Function
Function ClosePort()
ClosePort = SioDone(Port)
End Function
Function GetByte()
GetByte = SioGetc(Port)
End Function
Function PutAT()
Dim Code As Integer
Code = SioPutc(Port, Asc("A"))
Code = SioPutc(Port, Asc("T"))
PutAT = SioPutc(Port, 13)
End Function
Function PutByte (TheByte)
Dim Code As Integer
Code = SioPutc(Port, TheByte)
PutByte = Code
End Function
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -