10-26-2009, 01:11 PM
Hi,
*** Above code is working fine when having the text file with values like this formatenver;Frankfurt;London;Los Angeles;Paris;Portland;San Francisco;Seattle;Sydney;Zurich;
But same textfile format values like,its not working .pls suggest me .
Denver
Frankfurt
London
Los Angeles
Paris
Portland
Francisco
Seattle
Sydney
Zurich
Code:
Set a=CreateObject("scripting.filesystemobject")
Set b=a.opentextfile("C:\Documents and Settings\madhu\Desktop\te.txt",1)
If b.atendofstream <> true Then
c=b.readline
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+";"
Next
MsgBox h
If h = c then temp=1
If temp=1 Then
MsgBox "pass"
else
MsgBox "Fail"
End If
Window("Flight Reservation").Close
*** Above code is working fine when having the text file with values like this formatenver;Frankfurt;London;Los Angeles;Paris;Portland;San Francisco;Seattle;Sydney;Zurich;
But same textfile format values like,its not working .pls suggest me .
Denver
Frankfurt
London
Los Angeles
Paris
Portland
Francisco
Seattle
Sydney
Zurich