Removing tab characters

Using Lotus Script I’m trying to programmatically remove tabs from a string. My usual way of removing character is to define a variable, for example, carriagereturn = Chr$(10) and then using the Instr command to find the variable. I’ve tried using the same approach for a tab which is a decimal 9 with no luck.

Would appreciate anyone out there that can provide a usable approach to removing these tabs.

Thanks.

Subject: re: tab characters

Are you sure they’re tab characters? You might want to step through each character in a test sample string with asc() to make sure there isn’t something else going on.

And usually I’ll just use the replace function to clear out multiple unwanted characters.

findArray(0) = chr$(10)

findArray(1) = chr$(9)

'etc.

replaceArray(0) = “”

replaceArray(1) = “”

ret = repalce(sourceString, findArray, replaceArray)

Subject: re: tab characters

I did display the ASC of each character and the character I’m trying to strip out is a tab ASC 9.

Is there a way I can strip it out?

Subject: re: tab characters

Did you try the replace function yet?

Subject: re: tab characters

I have come up with a workaround…didn’t specifically use the replace function since I didn’t know how to represent the tab value.