|
Message Box
|
|
09-12-2009, 11:54 PM
Post: #1
|
|||
|
|||
|
Message Box
If i create a message box, how do I get the script to run a different line when the user clicks ok?
undefined |
|||
|
09-13-2009, 10:08 AM
Post: #2
|
|||
|
|||
|
RE: Message Box
You need to capture the return value from the message box. Remember that although MsgBox() is often used like a subroutine, it's actually a function that returns an integer value. There are several possible return values depending on the buttons you display, but it's much easier to remember VBScript's constants instead. Try something like this:
VBS Programming
Scripting problems? Windows questions? Ask the Windows Guru! Stay up to date with all of my latest content. Follow me on Twitter! Help us help you! Post your exact error message with these easy tips! |
|||
|
09-13-2009, 11:59 AM
Post: #3
|
|||
|
|||
RE: Message Box
(09-13-2009 10:08 AM)Nilpo Wrote: You need to capture the return value from the message box. Remember that although MsgBox() is often used like a subroutine, it's actually a function that returns an integer value. There are several possible return values depending on the buttons you display, but it's much easier to remember VBScript's constants instead. Try something like this: Something like this... VBS Programming
undefined |
|||
|
« Next Oldest | Next Newest »
|
| Forum Permissions |
| You cannot post new threads. You cannot post replies. You cannot post attachments. |
| HTML is turned off. MyCode is turned on. Smilies are turned on. [img] is turned on. |


Search
Member List
Calendar
Help




