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 Posted / 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 View All Answers
Explain about .wsf files?
How can you fetch the value of a cookie?
Mention what is the main difference between function and sub-procedure?
What are string functions in vbscript?
How can you create a file object to work with the files in the vbscript language?
How will you get the natural logarithm of the given number in vbscript?
What is difference between vbscript and vba?
What are the valid scopes of a variable in vbscript?
Explain the tristate constants in vbscript?
What are the special sub-types in vbscript?
how to increasing the numbers in a given text box please write a vb script
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
can anyone tell me the procedure of interview held in applabs
How strcomp function works?
what is the differance between BYVAL,BYREF?