10-27-2009, 05:02 PM
(This post was last modified: 10-27-2009, 05:07 PM by 1981.madhu@gmail.com.)
Saket ,yes i did b=a.readdall
then i compared .Its not at all working .
Changed the code as per saket AND Basanth ..still not working .Below one is my changed code as per saket
then i compared .Its not at all working .
Changed the code as per saket AND Basanth ..still not working .Below one is my changed code as per saket
Code:
Set a=CreateObject("scripting.filesystemobject")
Set b=a.opentextfile("C:\Documents and Settings\madhu\Desktop\te.txt",1)
c=b.readall
End If
d=Window("Flight Reservation").WinComboBox("Fly From:").GetItemsCount
temp=0
For i=0 to d-1
g=Window("Flight Reservation").WinComboBox("Fly From:").GetItem(i)
h=h+g+vbcrlf
Next
MsgBox h
If h = c then temp=1
If temp=1 Then
MsgBox "pass"
else
MsgBox "Fail"
End If
Window("Flight Reservation").Close