使用MSGBOX没有暂停的应用程序应用程序、MSGBOX

由网友(28.记忆殇人)分享简介:我需要显示一个消息给用户。当我做到这一点使用 MSGBOX ,程序停止,直到用户点击箱子走。我想知道是否有一种方法来打开 MSGBOX 而不暂停该计划。I need to display a message to the user. When I do this using MsgBox, the program s...

我需要显示一个消息给用户。当我做到这一点使用 MSGBOX ,程序停止,直到用户点击箱子走。我想知道是否有一种方法来打开 MSGBOX 而不暂停该计划。

I need to display a message to the user. When I do this using MsgBox, the program stops until the user clicks the box away. I'd like to know if there's a way to open the MsgBox without pausing the program.

推荐答案

听起来你不期望从MSGBOX任何用户输入。在这种情况下,根据你的应用程序中,状态条可能是一个适当的替代品。

Sounds like you're not expecting any user input from the MsgBox. In this case, depending on your application, the StatusBar may be an adequate substitute.

在Excel中,这是简单的:

In Excel this is easy:

Application.StatusBar = "Please be patient..."
Application.StatusBar = iDone & " of " & iTotal & " items done."

要清除状态栏完成时:

Application.StatusBar = False

在访问中,语法更一点点令人费解的:

In Access, the syntax is a tiny bit more convoluted:

Temp = SysCmd(acSysCmdSetStatus, "Hey, look at me!") ' Puts out your message
Temp = SysCmd(acSysCmdClearStatus) ' Clears StatusBar
阅读全文

相关推荐

最新文章