![]() ' message box will have Yes and No buttons, the default will be ![]() ![]() ' Now define a style for the message box. ' Define the message you want to see inside the message box. ' The following example requires that Option Infer be set to On. The value returned by the MsgBox function depends on the button chosen by the user: Yes returns a value of 6 No returns a value of 7. In this case, adding 4 (the Yes/No button combination) and 16 (the Critical Message window) and 256 (the second button as default button) gives a total of 276. This is done by combining the MsgBox constant values into one numeric expression. The No button is specified as the default response. This example uses the MsgBox function to display a critical-error message in a dialog box with Yes and No buttons. One or more parameters not a member of MsgBoxResult or MsgBoxStyle enumeration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |