Re: Testing for a empty string
- Posted by c.k.lester <euphoric at cklester.com> Jan 12, 2007
- 515 views
Rich Klender wrote: > > strings[i] = gets(FileName) > > if strings[i][1] != {";"} or {" "} then > DataRead = append ({}, strings[i]) > end if > > I want to test the 1st character of the line I received from the gets to see > if it's a semicolon or empty, if it is I don't want that line, if not then > I want to append it to DataRead. Try if strings[i][1] != ';' and strings[i][1] != ' ' then alternatively if find(strings[i][1],"; ") = 0 then