| || |
My situation is like this. Look at my code
Dim Del as string
Del = "Do you want to delete all cases,logoff and close broweser?"
callscript which will delete cases.
My question to you people is
I want to change my code with this logic
a)I want a message box whihc is yes or no
b)If yes click on Ok
c)If no - stop robot(f11 key or stop button), then click ok
Early replys are highly appretiated.
Re: Msgbox question
End will end the script, and if you look at MsgBox help online you find:
Displays a message box and returns a value (1-7) indicating which button the user selected.
MsgBox( prompt$ ,[buttons%][, title$] )
prompt$ The text to display in a dialog box.
buttons% An integer value for the buttons, the icon, and the default button choice to display in a dialog box. buttons% is the sum of three values, one from each of the following groups:
Group 1: Buttons
0 OK only
1 OK, Cancel
2 Abort, Retry, Ignore
3 Yes, No, Cancel
4 Yes, No
5 Retry, Cancel
Group 2: Icons
16 Critical Message ( STOP )
32 Warning Query ( ? )
48 Warning Message ( ! )
64 Information Message ( i )
Group 3: Defaults
0 First button
256 Second button
512 Third button
title$ A string expression containing the title for the message box.
prompt$ must be no more than 1,024 characters long. A message string greater than 255 characters without intervening spaces will be truncated after the 255th character.
If buttons% is omitted, MsgBox displays a single OK button.
After the user clicks a button, MsgBox returns a value indicating the user's choice. The return values for the MsgBox function are:
Value Button Pressed