write a vbscript for traffic signal

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


Please Help Members By Posting Answers For Below Questions

what is the standards used for writing the script in QTP

1892


What is the purpose of the err object in the vbscript language?

630


Explain about adodb.stream class?

595


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

807


Explain about the support of asp for vb script functionality?

532






Can anyone send me a vb script function for verifying the functionality of active links on a web page

1602


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

2583


How you can call vbscript functions?

581


What is variant in vb script?

626


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

3557


Explain the tristate constants in vbscript?

563


What is dictionary object in vbscript? Explain?

628


What is vbscript language used for and which earlier language is it modeled upon?

539


How to Enter Values on the Command promt using VB script

1534


Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)

1415