vb6functions.bas

来自「一个完整的HTML编辑器」· BAS 代码 · 共 20 行

BAS
20
字号
Attribute VB_Name = "VB6Functions"
Option Explicit
' These are vb6 functions not in vb5. If using vb 6 comment out these functions or
' remove this module from the project... note that i have edited some of these functions
' for my use and the vb 6 functions may not work the same. You could always change the
' name of these functions and replace the call in the code. These functions were taken from
' support.microsoft.com

Public Function RevInStr(ByVal sIn As String, sFind As String, Optional nStart As Long = 1, Optional bCompare As VbCompareMethod = vbBinaryCompare) As Long
Dim nPos As Long
    nPos = InStr(nStart, sIn, sFind, bCompare)
    If nPos = 0 Then
        RevInStr = 0
    Else
        RevInStr = Len(sIn) - nPos - Len(sFind) + 2
    End If
End Function
 
' End VB6 functions

⌨️ 快捷键说明

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