问题标签 [msgbox]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
639 浏览

vba - 在 for 循环下添加 MsgBox 的问题

我在函数下和 for 循环下添加了以下代码。

当我在 excel 中输入任何值时,我让这段代码能够观察 MsgBox,但是它继续显示 MsgBox(即使按 OK),直到整个 excel 计算所有单元格(我的 excel 中有大量数据和很多后面运行的函数)。有没有办法克服这个问题?

0 投票
1 回答
3861 浏览

ms-access - 宏 Bulder MS Access 将文本框值插入 msgbox

我有一个通过宏构建器构建的宏,它有一个 msgbox,上面写着“成功,您已被分配任务编号:”我希望从“tboTaskNumber”中获取的任务编号跟随此消息。

我可以在 VBA 中轻松地做到这一点,但是我真的很难把它放在宏生成器中(在 vba 中你可以做类似的事情"Success..." & Me.tboTaskNumber.Value。但它似乎宏构建器 msgbox 操作上的“消息”字段在开头和结尾添加了引号默认为“消息”。

在宏生成器中可以解决这个问题的语法是什么?

谢谢您的帮助。

0 投票
1 回答
2950 浏览

vba - 如果更新查询更改了 1 行,则 VBA 显示消息框,如果没有则显示另一个

我正在访问中运行附加查询(以更改某人的登录密码),目前它检查以确保密码匹配并且他们知道原始密码。但是,我遇到了一个问题,如果更新查询:DoCmd.RunSQL "UPDATE Credentials SET Credentials.[Password] = [Forms]![LoginSubmit]![DesiredPassword] WHERE (((Credentials.Password)=[Forms]![LoginSubmit]![CurrentPassword]) AND ((Credentials.[User ID])=[Forms]![LoginSubmit]![User ID]));"更新 0 行(意味着不满足条件)它会关闭(我有docmd.close以下内容)。如果它确实更新了他们的密码,它也会这样做,所以最后你不知道它是否成功,直到你尝试你的新密码。

我想知道它什么时候更新了 0 行,这样我就可以打开一个 MsgBox 告诉他们它不起作用,结束 sub 并让他们再试一次。如果它更新 1 行,我会有一个 MsgBox 说“成功”。

我知道上面的 VBA,除了返回该查询中更新行数的值的部分。有人可以帮我吗?

提前致谢。

0 投票
0 回答
381 浏览

javascript - jquery msgbox在确认之前删除gridview行?

我想在确认后删除 rocord 但是当我单击按钮时会立即删除记录并在显示确认后删除。这是脚本;

这里是asp.net代码;

0 投票
1 回答
63 浏览

vbscript - 我如何允许用户更改 vbs 中的文本?

我如何制作一个允许用户更改文本的 vbs msgbox?X:msgbox=("我想改变 ''this''?" ,0+32, "如果")

0 投票
1 回答
2088 浏览

excel - Excel VBA - 对于下一个循环 - 查找显示列的列号和存储的结果

这是我第一次提出问题,所以请多多包涵。

我制作了一个宏来根据使用 FOR-NEXT 循环的条件隐藏命名范围中的列。结果始终显示 2 列。

使用得到的 2 列,我进行计算。

我面临使用生成的显示列的 vba 获取列号并在偏移公式中使用它们进行计算的问题。

有人可以帮忙吗?谢谢

0 投票
2 回答
3836 浏览

matlab - msgbox in MATLAB

I want to show my output in a msgbox so I have used msgbox(num2str(output)) but I want to name each line, eg:

but when I try to do that it says

And when that window pops up and the user press OK then another window will pop up asking

So, how can format my msgbox and as soon as the OK button is pressed another window will popup?

Any help would be appreciated!

Thanks!

0 投票
5 回答
4875 浏览

vbscript - 如何在vbs中打开多个消息框?

我知道如果你输入

然后会弹出一个不会消失的消息框。

我想要多个您可以关闭的消息框。

我该怎么做呢?

0 投票
2 回答
2946 浏览

arrays - Putting all elements of an array variable onto their own line in a message box

The code below is a fragment of a macro I'm writing to alert users that they may not have a sufficient number of compatible installation equipment on an order. n shortfalls (i.e., each instance of an equipment item not having compatible installation equipment are saved in the yankees() array in elements 1 to n. What I want to do is prompt users with a message box stating "Please review your order to ensure you have you sufficient compatible installation equipment- we detected the following shortfalls"

and below that

include all each element of yankees(1 to n) on separate lines in a message box with two options below "This is okay, I'll submit my order now" and "Let me go back,I want to modify my order".

How can I create such a message box?

I have:

currently but this only includes the first shortfall. How can I include all elements of yankee() and put them on their own line?

This question really boils down to: "How do I put all non-blank elements of an array variable onto their own lines in a message box prompt"?

0 投票
2 回答
6818 浏览

vb.net - 从输入框计算,带有字母输入的错误消息

我一直在努力解决 Visual Basic 中一个令人尴尬和烦人的小问题(正如您可能看到的那样,我是一个初学者)。问题是输入字母而不是数字时的错误消息系统。我得到“无法从整数转换为字符串。

对此的任何帮助将不胜感激。

这是我的代码:

提前谢谢你:)!