alexlimbert Posted August 20, 2005 Report Share Posted August 20, 2005 Hi, Great Software!!! I have a quick question. I want to replace carriage returns with a delimiter instead of stripping them because when I strip carriage returns the last word on the first line becomes attached to the first word on the second line (see fig. 1 below). If I could replace carriage returns with a space (but ideally a delimiter) this would be really great!!! Thanks. Alex P Limbert (Fig 1.) 123 Main St 456 Centre Ave [Current Status] 123 Main St456 Centre Ave [Desired Results] 123 Main St[DELIMETER]456 Centre Ave Quote Link to comment Share on other sites More sharing options...
randallc Posted August 21, 2005 Report Share Posted August 21, 2005 Hi, I guess you will have your answer in astring, so at the appropriate time, say the string is "T1", replace as below; [copy the first quoted code to script editor] <REM2:Set Environment variable "CRLF" to cr/lf characters><ASCIIC:2:1:10><ASCIIC:3:1:13><TMVAR2:08:03:02:000:000:><TMVAR2:19:03:00:000:000:CRLF><REM2:Replace Environment variable "CRLF" in String T1 with space><TMVAR2:21:01:01:000:000:%CRLF% > // Set Environment variable "CRLF" to cr/lf charactersVariable Set %T2% to ASCII Char of 10 Variable Set %T3% to ASCII Char of 13 Variable Modify String: Append %T2% to %T3% Variable Modify String: Save %T3% to Environment Variable // Replace Environment variable "CRLF" in String T1 with space Replace "%CRLF%" with " " in %T1% Best, Randall Quote Link to comment Share on other sites More sharing options...
alexlimbert Posted August 21, 2005 Author Report Share Posted August 21, 2005 Brilliant!!! Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.