finitesimian
Programmer
Hi. I'm a novice, and I'm attempting to create a Msgbox prompt that gives the user the option to select yes/no/cancel before executing the rest of the code.
I know how to do it in vb.net, but I haven't been able to figure out the correct syntax that would make attachmate happy.
Here is what I *think* it's supposed to look like:
Is this correct? If not, can you give me an example to show me the correct syntax? Thanks in advance.
I know how to do it in vb.net, but I haven't been able to figure out the correct syntax that would make attachmate happy.
Here is what I *think* it's supposed to look like:
Code:
dim retvalue
retvalue = Msgbox ("Do you want to select something?",4,"Selecting something")
If retvalue = 6 then
Msgbox("You picked yes. Now running the rest of this script.....")
Sess0.Screen.sendkeys("<Home><Backtab>whatever keystrokes and whatnot<Enter>")
Else UserAnswer = 7 then
Msgbox("You picked no.")
End If
Is this correct? If not, can you give me an example to show me the correct syntax? Thanks in advance.