Function CountMatches(ByVal strFic As String, ByVal strSearch As String) As Long ' 需引用 Microsoft VBScript Regular Expressions 5.5 library ' 统计文本文件指定的字符串的个数 ' 用法: ?countmatches("c:\SoftwareList.txt","ERP") Dim reg As VBScript_RegExp_55.RegExp &nb ...
'在程序退出前调用下面代码,即可实现当文件到达一定大小才压缩数据库 Public Function AutoCompactCurrentProject() Dim fs, f, s, filespec Dim strProjectPath As String, strProjectName As String strProjectPath = Application.CurrentProject.Path &nb ...