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.
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)