4 回答

TA貢獻(xiàn)1805條經(jīng)驗(yàn) 獲得超10個(gè)贊
MsgBox(prompt[, buttons] [, title] [, helpfile, context])MsgBox 函數(shù)的語(yǔ)法具有以下幾個(gè)命名參數(shù):
Prompt-------必需的。字符串表達(dá)式,作為顯示在對(duì)話框中的消息。prompt 的最大長(zhǎng)度大約為 1024 個(gè)字符,由所用字符的寬度決定。
如果 prompt 的內(nèi)容超過(guò)一行,則可以在每一行之間用回車符 (Chr(13))、換行符 (Chr(10)) 或是回車與換行符的組合 (Chr(13) & Chr(10)) 將各行分隔開(kāi)來(lái)。
Buttons-------可選的。數(shù)值表達(dá)式是值的總和,指定顯示按鈕的數(shù)目及形式,使用的圖標(biāo)樣式,缺省按鈕是什么以及消息框的強(qiáng)制回應(yīng)等。如果省略,則 buttons 的缺省值為 0。
Title-------可選的。在對(duì)話框標(biāo)題欄中顯示的字符串表達(dá)式。如果省略 title,則將應(yīng)用程序名放在標(biāo)題欄中。
Helpfile--------可選的。字符串表達(dá)式,識(shí)別用來(lái)向?qū)υ捒蛱峁┥舷挛南嚓P(guān)幫助的幫助文件。如果提供了 helpfile,則也必須提供 context。
Context-------可選的。數(shù)值表達(dá)式,由幫助文件的作者指定給適當(dāng)?shù)膸椭黝}的幫助上下文編號(hào)。如果提供了 context,則也必須提供 helpfile。

TA貢獻(xiàn)2011條經(jīng)驗(yàn) 獲得超2個(gè)贊
Displays a message in a dialog box, waits for the user to click a button, and
returns a value indicating which button the user clicked.
MsgBox(prompt[, buttons][, title][, helpfile, context])
Arguments
prompt
String expression displayed as the message in the dialog box. The maximum
length of prompt is approximately 1024 characters, depending on the width
of the characters used. If prompt consists of more than one line, you can
separate the lines using a carriage return character (Chr(13)), a
linefeed character (Chr(10)), or carriage return–linefeed
character combination (Chr(13) & Chr(10)) between each
line.
buttons
Numeric expression that is the sum of values specifying the number and type
of buttons to display, the icon style to use, the identity of the default
button, and the modality of the message box. See Settings section for values. If
omitted, the default value for buttons is 0.
title
String expression displayed in the title bar of the dialog box. If you omit
title, the application name is placed in the title bar.
helpfile
String expression that identifies the Help file to use to provide
context-sensitive Help for the dialog box. If helpfile is provided,
context must also be provided. Not available on 16-bit platforms.
context
Numeric expression that identifies the Help context number assigned by the
Help author to the appropriate Help topic. If context is provided,
helpfile must also be provided. Not available on 16-bit platforms.
- 4 回答
- 0 關(guān)注
- 951 瀏覽
添加回答
舉報(bào)