Answer Posted / manjunathareddy
Dim Red
Dim Green
Dim Orange
Dim Traffic
Traffic=InputBox("1.Red"&Vbnewline&"2.Green"&vbnewline&"3.Orange","Traffic
Signal")
Select Case Traffic
Case 1
Msgbox "Stop"
Case 2
Msgbox "Move"
Case 3
Msgbox "Ready to Move"
Case Else
Msgbox "Invalid Selection"
End Select
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Anyone have qtp11.0 crack?
How to replace junk code recorded by QTP with a mall function.
Explain vbscript in detail?
What is the use of option explicit in vbscript?
what is diff between static and dynaic arrys?
What are the environments supported by vbscript language?
What are the valid scopes of a variable in vbscript?
What if you do not specify anything when you call a procedure?
Why is the use of exit do or exit for statements within loops discouraged?
If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
What are class events?
How will you reverse a string in vbscript?
Mention what is variant in vbscript?
How will you compare two strings in vbscript?