Monday, 15 July 2013

VBScript MsgBox Function



VBScript MsgBox Function
The MsgBox function displays a message box, waits for the user to click
 a button, and returns a value that indicates which button the user clicked.
The MsgBox function can return one of the following values:
  • 1 = vbOK - OK was clicked
  • 2 = vbCancel - Cancel was clicked
  • 3 = vbAbort - Abort was clicked
  • 4 = vbRetry - Retry was clicked
  • 5 = vbIgnore - Ignore was clicked
  • 6 = vbYes - Yes was clicked
  • 7 = vbNo - No was clicked
Syntax
MsgBox(prompt[,buttons][,title]

Example ;

Msgbox”Welcome to my blog”,1,”Anil Kumar Vishwakarma"

No comments:

Post a Comment