Plz give the vb script for the following scenerio.
In travel booking we have to select from delhi to mumbai
from the combobox The prices will be display in another
combo box .But i have to select the lowest price for it and
submit it



Plz give the vb script for the following scenerio. In travel booking we have to select from delhi t..

Answer / satyanj

<Obj Hierch>.WinComboBox("From").Select "Delhi"
<Obj.Hier>.WinCombobox("TO").Select "Mumbai"
Itmscnt = <Obj.Hier>.WinComboBox("Price").GetItemsCount
val = <obj.Hier>.WinComboBox("Price").GetItem(0)
For itm = 1 to Itmscnt-1
itmval = <Obj.Hier>.WinComboBox
("Price").GetItem(itm)
If cint(Val) < cint(itmval) then
msgbox "Val is less than itmval"
else
val = itmval
end if
Next
msgbox "Lowest price is: "&val
<Obj.Hier>.WinComboBox("Price").Select val
<Obj.Hier>.WinButton("Submit").Click

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VB Script Interview Questions

How can I access an object in another frame?

1 Answers  


i need to login to my yahoo accoutnt using VB Script, automating the operation of webobjects, even launching of IE. How?

1 Answers   Mphasis,


How can the spaces from the string be removed?

0 Answers  


how to increasing the numbers in a given text box please write a vb script

0 Answers  


How to throw an error in vbscript?

0 Answers  






Both Static and dynamic arrays are handled by VB script. Is it true?

0 Answers  


How to create MSAcess table foriegn key

1 Answers  


can u test the application without add-in?

1 Answers  


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?

0 Answers  


What is difference between vbscript and vba?

0 Answers  


How to open excel in vb script?

0 Answers  


Mention how to create a cookie using vbscript?

0 Answers  


Categories