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
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 |
How can I access an object in another frame?
i need to login to my yahoo accoutnt using VB Script, automating the operation of webobjects, even launching of IE. How?
How can the spaces from the string be removed?
how to increasing the numbers in a given text box please write a vb script
How to throw an error in vbscript?
Both Static and dynamic arrays are handled by VB script. Is it true?
How to create MSAcess table foriegn key
can u test the application without add-in?
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?
What is difference between vbscript and vba?
How to open excel in vb script?
Mention how to create a cookie using vbscript?