VBS中赋予弹出inputbox默认值的代码

在弹出inputbox时,有默认值,那么是这样:

如:
pop=InputBox("界面上的提示", "标题提示", "inputbox的默认值")

具体例子:
将下面的代码保存为 *.vbs的文件,如1.vbs

代码如下:

dbname=inputbox("请在下面输入数据库名称,数据库必须与本程序在同一目录。名称如pop.mdb", "pop's 网站解压", "web.mdb")

This entry was posted in Technology and tagged , , . Bookmark the permalink. 5,148 views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *