write a vbscript for traffic signal



write a vbscript for traffic signal..

Answer / 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

More VB Script Interview Questions

I want to import the sheet from the Excel to the Datatable using VB Script. I used the Syntax as 'Datatable.ImportSheet "Filename","SourceSheet","Destinat ionSheet" Ex: Datatable.ImportSheet "D:\Data1.xls","Sheet1","Global" Qtp producing run time error,How I can solve the problem

1 Answers  


There are 5 web pages.write a script to click the button on 4th web page.

0 Answers   Accenture,


write a Vb script to find a whther a selected drive exits.

1 Answers   CTS,


Mention characteristics of sub procedures?

0 Answers  


Is vbscript language a case-sensitive language and what does it mean?

0 Answers  






How to generate 3 digit random number?

3 Answers   IBM, Virtusa,


What is the difference between function and procedure?

0 Answers  


How do you create a recordset object in VBScript?

3 Answers  


HI how can handle dynamic image through vb script example we have to create email id fill the edit box(these latters change wrong password) i am wating your answer

1 Answers  


Which operator is used to concatenate the 2 values in the vbscript language?

0 Answers  


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

0 Answers  


What are the disadvantages of vbscript?

0 Answers  


Categories