以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  发页后的项目如何用代码打开命令窗口  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=77891)

--  作者:ap9709130
--  发布时间:2015/11/27 10:52:00
--  发页后的项目如何用代码打开命令窗口
发布后的项目,有时候要测试用。有这方面的代码吗?
--  作者:大红袍
--  发布时间:2015/11/27 10:58:00
--  

无法打开命令窗口。你可以自己做一个窗口。

 

红色代码替换成你textbox控件。

 

Functions.remove("函数")
Dim Code As String
Code = "msgbox(123)" & vbcrlf
Functions.Add("函数",Code)
Functions.Complie()
Functions.Execute("函数")