modgeneral.bas
来自「设备管理系统包含设备管理」· BAS 代码 · 共 37 行
BAS
37 行
Attribute VB_Name = "ModGeneral"
Public Function Testtxt(txt As String) As Boolean
If Trim(txt) = "" Then
Testtxt = False
Else
Testtxt = True
End If
End Function
Public Sub EnterTAB(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{TAB}"
End If
End Sub
Public Sub EnterEnter(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{TAB}"
SendKeys "{ENTER}"
End If
End Sub
Public Function FileExists(FileName As String) As Integer
Dim i As Integer
On Error Resume Next
i = Len(Dir$(FileName))
If Err Or i = 0 Then FileExists = False Else FileExists = True
End Function
Function Quote(strValue As Variant) As String
Quote = Chr(39) & Trim(strValue) & Chr(39)
End Function
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?