View Single Post
  #3 (permalink)  
Old 08-13-2008, 01:08 PM
token token is offline
Junior Member
 
Join Date: Jul 2007
Posts: 38
Default

Quote:
Originally Posted by Erel View Post
Code:
        Do Until r = EOF
            sum = sum + 1
            r = FileRead (c1)
            'r = StrToUpper(r)
            ChanPos = StrIndexOf  (r , "Chan := ",0)
            If ChanPos > 0 Then
                ChanText = SubString (r,ChanPos + 8, 2)
                textbox1.Text=SubString(RemoveSpaces(r),0,11)
                If SubString(RemoveSpaces(r),0,11) = "My_RetValue" Then
                    r = FileRead(c1)
                    Table1.AddRow (ChanText,r)
                End If                    
            End If
        Loop
EOF is a string mark. If you change 'r' with StrToUpper, r will never be equal to EOF.
Many thanks, Erel.
Reply With Quote