Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - tabstrip(<expc> [,<n spaces per tab>]) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 TABSTRIP(<expC> [,<N spaces per tab>])
 Eliminates tab characters from text.
 Returns <expC> with tab characters replaced by spaces.

 <spaces per tab> will be substituted for each tab character in <expC>.
 Valid range is from zero to 16; default is 1 if omitted.

 Useful in editing and handling files with tab characters.

 A tab character has an ASCII value of 09.

 * Strip tabs while reading file into memo field
 REPLACE Memo_field WITH TABSTRIP(FILEREAD("Textfile.txt"))

 * Strip tabs while writing one file to another
 written = FILEWRITE( "Newfile.txt", TABSTRIP(FILEREAD("Textfile.txt")) )
 IF written = "DONE"
    ? "File was successfully written"
 ELSE
    ? written   && error message
 ENDIF


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: FILEREAD() FILEWRITE() WPSTRIP() WRAP()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson