PB中如何利用MESSAGE(box)函数写取消的语法
答案:2 悬赏:40 手机版
解决时间 2021-03-10 20:28
- 提问者网友:你独家记忆
- 2021-03-10 17:01
PB中如何利用MESSAGE(box)函数写取消的语法
最佳答案
- 五星知识达人网友:孤独的牧羊人
- 2021-03-10 17:13
MessageBox ( title, text {, icon {, button {, default } } } ) 第三个参数取值有以下几种:OK! - (Default) OK button
OKCancel! - OK and Cancel buttons
YesNo! - Yes and No buttons
YesNoCancel! - Yes, No, and Cancel buttons
RetryCancel! - Retry and Cancel buttons
AbortRetryIgnore! - Abort, Retry, and Ignore buttons
返回值为1、2 OR 3,如用OK!则只有确定按钮,点击返回1,OKCancel!则有确定和取消按钮,确定返回1,取消返回2,其他依此推。
OKCancel! - OK and Cancel buttons
YesNo! - Yes and No buttons
YesNoCancel! - Yes, No, and Cancel buttons
RetryCancel! - Retry and Cancel buttons
AbortRetryIgnore! - Abort, Retry, and Ignore buttons
返回值为1、2 OR 3,如用OK!则只有确定按钮,点击返回1,OKCancel!则有确定和取消按钮,确定返回1,取消返回2,其他依此推。
全部回答
- 1楼网友:詩光轨車
- 2021-03-10 17:57
integer Net
long Distance = 3.457
Net = MessageBox("Result", Abs(Distance), &
Exclamation!, OKCancel!, 2)
IF Net = 1 THEN
... // Process OK.
ELSE
... // Process CANCEL.
END IF
long Distance = 3.457
Net = MessageBox("Result", Abs(Distance), &
Exclamation!, OKCancel!, 2)
IF Net = 1 THEN
... // Process OK.
ELSE
... // Process CANCEL.
END IF
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯