Thanks guys! I Knew it had to be something like that but the braces are the key. Thanks. Never thought of using them.
Maybe you can explain something else to me about this. Here is how I am using this. I have a text file that has several lines in it that are interwoven with a tabbed line and spaced lines as such:
data line
line with just tab space(chr(09))
data line
line with just tab space(chr(09))
data line
line with just tab space (chr(09))
data line
line with 2 spaces (chr(20)chr(20))
data line
line with just tab space(chr(09))
data line
line with 1 space (chr(20))
data line
line with just tab space(chr(09))
data line
no order to where the tabs or spaces are - just alternating between the data lines.
By using the following code (your example), it works but it also leaves the lines with spaces. I am trying to filter out the tab and space lines.
BEGIN
ReadLn(InputFile, Line1);
IF IsEmptyStr(Line1,[Chr(09)]) THEN Continue
ELSE Writeln(OutputFile, Line1);
END;
I tried IsEmptyStr(Line1,[Chr(09),Chr(20)]) and it runs without any errors but does not filter out the space lines. I tried IsEmptyStr(Line1,[Chr(09)..Chr(20)]) also but it didn't work either. Various other combinations of &, +, ... were tried but they all generated compile errors. Both examples filter out the tab lines but not the space lines. Can I filter out both types of blank lines with this function?
Thanks again, Bzman