Here's an odd one...

Blitz3D Forums/Blitz3D Programming/Here's an odd one...

Craig H. Nisbet(Posted 2004) [#1]
Is there a way to test if a string has a horizontal tab charactor in it. I have a parsing command I wrote, but the text file i'm reading has some tabs inbeded in it and it's screwing it up. I can't figure out how to detect those.


Dreamora(Posted 2004) [#2]
if you are reading char per char and holding it in a var inchar$, just do the following

if chr$( inchar$ ) = 9 then .... ; Tab found


Floyd(Posted 2004) [#3]
It's probably simpler to change tab to space using the Replace$() function and then parse.