View Single Post
  #4 (permalink)  
Old 07-22-2008, 07:09 AM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 3,344
Default

The problem is in sub LoadINI.
You should replace all the Flag(0) = ... lines to:
Code:
For i = 0 To 5
        b = FileRead(c1)
        Flag(i) = SubString(b,StrIndexOf(b,"=",0)+1,StrLength(b)-StrIndexOf(b,"=",0)-1)
Next
You've set the length to be one character longer than it should be.
So a trailing space was added to Flag(i).
Reply With Quote