VisKProg HELP - MsgBox functionSee also *** Example *** Function index The MsgBox function shows a message in an own window. Syntax:
Detailed description:You can use the MsgBox function to show the user short messages. Typically, MsgBox is used to ask whether to quit the program, to tell the user about an error or something like that. You can give the text, you want to be shown as the first function argument. As a second one, you can specify what buttons to show, using an ID. Correct ID's are:
1 - OK and Cancel buttons (information) 2 - Yes/No (question) 3 - Yes/No/Cancel (question) 4 - OK button with exclamation icon (error) The MsgBox function returns the number of the button that has been pressed (E.g. 1 for "Yes" and 2 for "No" in a Yes/No box). See also:(no references)
© 2000 by Christoph Pinkel |