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 |
Explain the asc function?
pls tell me which is good book or site for vbscript?
What is the difference between Javascript & Vbscript?
How to open excel in vb script?
How should i Create Email invite with server-side Coding?
Explain about the asc function?
Mention how to assign a date value to a variable?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
If else for do while select in vb script?
Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.
Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript
create a form to accept username and password validate the username and password with using message box, display the corresponding user message