Hi, I have the same problem here with a message box, already tried to fix it with chr(10), chr(13), CDATA, unicode , &'x0A;,\n, \r\n, ASCII +char(10), HTML <br>.... nothing worked so far
Original Message:
Sent: Wed August 14, 2024 03:14 PM
From: Christopher Verdon
Subject: Carriage returns in HAScript prompt windows?
CDATA isn't even mentioned in the macro handbook so I hadn't tried it. Once again, I may be doing it wrong so please correct me. Here's the code that I tried. I got the following error window when I executed it and the craziest part is the code within CDATA was removed from the code editor when I went back to change it.
<vars> <create name="$commodity1$" type="string" value="" /> <create name="$doExit$" type="boolean" value="false" /> /* <![CDATA[ */ <create name="$promptName1$" type="string" value="'1-Novelty Deodorants'+chr(10)+'2-Light Bulbs'" /> /* ]]> */ </vars>
EDIT: I forgot the trailing greater than in that last tag. I tried it again after correcting it and got the same problem. I believe I don't need those comment indicators either so I tried it this way, but the results were the same.
<vars> <create name="$commodity1$" type="string" value="" /> <create name="$doExit$" type="boolean" value="false" /> <![CDATA[ <create name="$promptName1$" type="string" value="'1-Novelty Deodorants'+chr(10)+'2-Light Bulbs'" /> ]]> </vars>
------------------------------
Christopher Verdon
Original Message:
Sent: Wed August 14, 2024 01:15 AM
From: Sylvain Manceau
Subject: Carriage returns in HAScript prompt windows?
Did you try with CDATA, in Code Editor?
------------------------------
Sylvain Manceau
Original Message:
Sent: Tue August 13, 2024 03:04 PM
From: Christopher Verdon
Subject: Carriage returns in HAScript prompt windows?
Luckily there's plenty to keep me busy at work but I'd still like to complete this project. If anyone thinks they can help, please chime in!
------------------------------
Christopher Verdon
Original Message:
Sent: Thu June 20, 2024 04:00 PM
From: Christopher Verdon
Subject: Carriage returns in HAScript prompt windows?
I'm working on a way to quickly enter repetitive text into the terminal window. It'd really help if when I make a prompt pop up if the text in the window, or as it's called the "prompt name" could have multiple lines of text. So far everything I've tried to put in the string or concatenate into the string has failed. For example I've tried using character codes like and formatting codes like \n, but I've had no luck. This is mostly just a side project I do on my breaks but any input would be appreciated. I've included a shot of what I've started. Where it says the 2 kinds of commodities is where I'd like to break it up.
------------------------------
Christopher Verdon
------------------------------