Readln or getclipboard then replace space with hard return

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Snickers
Macro Veteran
Posts: 151
Joined: Thu Dec 09, 2004 3:01 pm
Location: Somewhere in TX

Readln or getclipboard then replace space with hard return

Post by Snickers » Sat Aug 18, 2007 3:15 am

Is it possible to read a line in a file.txt and then replace all spaces in the document with a hard return?

Snickers
Macro Veteran
Posts: 151
Joined: Thu Dec 09, 2004 3:01 pm
Location: Somewhere in TX

Post by Snickers » Sat Aug 18, 2007 3:19 am

EDIT: 1:30am now. I tried %CR% to no avail. Then I decided to work on a different area of the script. The whole time %CRLF% never came to mind, not until I worked on some dialog comboboxes! :oops:

it seems as though %CR% works best with send Character/text> and %CRLF% works well with WriteLn>

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sat Aug 18, 2007 7:07 am

Yes, text files (in Windows anyway) have a Carriage Return and Line Feed combination at the end of each line.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts