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

Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar

1966


How to add actions in driver script to run those actions in QTP?

1521


What are the data types supported by vbscript?

580


Can u describe what kind of testing are for OTC derivates by banks.

1669


Mention what are the rules to name variable in vbscript?

540






give me any information abou vb script books learn quckly

1661


What are keywords in the vbscript language?

527


What is the use of the date function in the vbscript language?

568


what is the standards used for writing the script in QTP

1892


How will you get the natural logarithm of the given number in vbscript?

606


How are values assigned to the variables in the vbscript language?

576


I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..

1808


How to write VB script for login module?

2678


How are comments handled in the vbscript language?

512


when we use filter funtiom invb script(QTP)

2304