⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 module1.bas

📁 套打程序
💻 BAS
字号:
Attribute VB_Name = "Module1"
Option Explicit
Public g_strAppPath As String

Sub Main()
    g_strAppPath = IIf(Right(App.Path, "1") = "\", App.Path, App.Path & "\")
    mFrm_Main.Show
End Sub

Public Sub ErrInfo(Optional tmpstr As String = "")
    If tmpstr <> "" Then
        Call MsgBox(tmpstr, vbExclamation, App.EXEName)
    Else
        Call MsgBox(Err.Number & ":" & Err.Description & " ", vbExclamation, App.EXEName)
    End If
End Sub

Public Function ListFind(List As Object, mText As String, Optional FindList As Boolean = False) As Integer
    
    With List
    
        If Not FindList Then
            
            If Val(mText) = 0 And mText <> "0" Then
                For ListFind = 0 To .ListCount - 1
                    If .List(ListFind) = mText Then Exit For
                Next
            Else
                For ListFind = 0 To .ListCount - 1
                    If .ItemData(ListFind) = Val(mText) Then Exit For
                Next
            End If
        
        Else
            For ListFind = 0 To .ListCount - 1
                If .ItemData(ListFind) = Val(mText) Then Exit For
            Next
        End If
        
        If ListFind = .ListCount Then ListFind = -1
    End With
    
End Function

⌨️ 快捷键说明

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