trim /r/n
Posted: Sun Jan 27, 2008 4:33 pm
I'm trying to trim returns. I'm not having much luck accomplishing this simple task. Must be one of those days.
Anyway, I know there is no trim function in transcript and I've read the documents and came up with the following code.
It compiles, but does not work. I can't even tell if it is doing anything, as it doesn't give me the final answer.
Any help is appreciated.
Anyway, I know there is no trim function in transcript and I've read the documents and came up with the following code.
Code: Select all
put the text of me into RText
answer RText
repeat for each line theLine in RText
return char 1 to -2 of theLine afer NewRText
end repeat
answer "New Text" & NewRText
Any help is appreciated.