[<<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()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson