macReplace
所属分类:Windows编程
开发工具:Visual Basic
文件大小:3KB
下载次数:2
上传日期:2009-06-09 09:20:46
上 传 者:
wensanren
说明: 很多软件均支持宏 本程序对特定文件中的内容按一定规则替换 从而生成特定的宏文件 使宏支持变参
Public Function ConstructMac(TempletfilePath As String, Templetfile As String, MacFilePath As String, Command As String) As String
======
目的: 用宏模板 按一定规则完成宏替换 生成可用的宏文件 (最多可支持99个参数 )
输入:TempletfilePath 模板文件路径, Templetfile 模板文件名, MacFilePath 宏文件路径, Command 以"/"分割的待替换参数
返回: 可用的宏文件名
输出:可用的宏文件
编写: 刘文春[72]
修改: 2009-06-09
时间: 2009-05-25
使用的函数: Function GetNewStr(OldStr As String, Command As String) As String
使用的函数: Function FileExist(FolderName As String)
宏模板 文件 实例
*** 行首为***时该行将被忽略(以方便在宏模板中做注释)
show 5+$$Z01$$+7+$$B02$$
show $$Z01$$+7+$$B02$$+7
show $$Z01$$+7+$$参数03$$+7
Command 2.5/3.25/125.175 本例中宏模板只使用了三个参数 最多可用99参数用反斜杠分割
对应该宏模板生成的宏文件
show 17.75
show 19.75
show 141.675
======
( show 5+$$Z01$$+7+$$B02$$
show $$Z01$$+7+$$B02$$+7
show $$Z01$$+7+$$参数03$$+7
Command 2.5/3.25/125.175
show 17.75
show 19.75
show 141.675
======)
文件列表:
FunModule(net2009).bas (9034, 2009-06-09)
宏替换说明.txt (996, 2009-06-09)
近期下载者:
相关文件:
收藏者: