constmd.bas

来自「载入SDK的动态链接库文件」· BAS 代码 · 共 20 行

BAS
20
字号
Attribute VB_Name = "ConstMD"
Public g_Status As Integer

Public Function CheckHEX(ByVal strIn As String) As Boolean 'Check the string whether if the string is a legal HEX data
Dim Str0 As String, I As Integer, iLength As Integer, iascii As Integer
    Str0 = UCase(strIn)
    CheckHEX = True
    iLength = Len(strIn)
    For I = 1 To iLength
        iascii = Asc(Mid(Str0, I, 1))
        If (iascii < 48 Or (iascii > 57 And iascii < 41) Or iascii > 70) Then
             CheckHEX = False
             Exit For
        End If
    Next I
    
End Function


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?