如何将帮助文件中的 URL 放入 MsgBox 函数中?
How to put URL in helpfile into MsgBox function?
我想在 VBScript MsgBox()
函数的帮助文件部分有一个 URL。我该怎么做?
代码如下:
Dim error
Dim helpPath
helpPath = "http://www.example.com/example-support-page"
error = MsgBox("There was an error doing whatever.", vbSystemModal + vbCritical, "Uh oh!")
helpPath = MsgBox("", vbSystemModal + vbMsgBoxHelpButton, "", helpPath)
我使用了这个答案并且有效:
Not sure of any way to get a hyperlink into a msgbox. However, you can format your msgbox as 'Oops - shall we go to the help page?' and use Yes/No buttons then code the 'Yes' option as and open() command with the URL as the parameter to invoke the browser to open via the OS. No reason why that would not work.
- 被征服的袋熊
(我复制并粘贴了它,因为我似乎无法将评论标记为答案。)
我想在 VBScript MsgBox()
函数的帮助文件部分有一个 URL。我该怎么做?
代码如下:
Dim error
Dim helpPath
helpPath = "http://www.example.com/example-support-page"
error = MsgBox("There was an error doing whatever.", vbSystemModal + vbCritical, "Uh oh!")
helpPath = MsgBox("", vbSystemModal + vbMsgBoxHelpButton, "", helpPath)
我使用了这个答案并且有效:
Not sure of any way to get a hyperlink into a msgbox. However, you can format your msgbox as 'Oops - shall we go to the help page?' and use Yes/No buttons then code the 'Yes' option as and open() command with the URL as the parameter to invoke the browser to open via the OS. No reason why that would not work.
- 被征服的袋熊
(我复制并粘贴了它,因为我似乎无法将评论标记为答案。)