randallc Posted February 8, 2005 Report Share Posted February 8, 2005 Hi, everyone, I am having trouble putting some macros into variables or text files. I think I have tracked it down to the Carriage returns (?) in Text Box Displays and multiple choice commands. Is this not a "CRLF"?; "\r\n" does not help. Can anyone enlighten me? Thanks, Randall Quote Link to comment Share on other sites More sharing options...
kevin Posted February 8, 2005 Report Share Posted February 8, 2005 Randall, A couple of quick guesses and a hint: You do not need or want a CRLF between macro commands. The \n is equivalant to CRLF. By using \r\n you are in effect doing CRCRLF. The hint is to write your macro in the script editor the way you want it to appear. Export to a playable (.mxe) macro. Edit the playable macro and it contains what you need. You will, however, need to insert \n (CRLF) and \s (Separator char)characters where appropriate. Quote Link to comment Share on other sites More sharing options...
randallc Posted February 8, 2005 Author Report Share Posted February 8, 2005 Thanks Kevin, I did not realize the \n was enough! I have not solved the problem yet! Are you able to do this with Text boxes and Multiple choice menus? I am not.. trying to add CRLF except where they already appear in these macros in these boxes (ie not.. "between" macro lines" as you say..); there must be some other way to handle them than \n, or it is not possible? Thanks, Randall Quote Link to comment Share on other sites More sharing options...
joe Posted February 9, 2005 Report Share Posted February 9, 2005 Randall - This example should work. <TVAR2:02:01:<MENU2:2:T:01:CenterCenter:Sample Menu\sPlease choose one of the following options:\sOption 1\r\nOption 2\r\nOption 3\r\nOption 4\s>><RUNMACVAR:2> Quote Link to comment Share on other sites More sharing options...
kevin Posted February 9, 2005 Report Share Posted February 9, 2005 Randall: Oops! I was mistaken: \n is the Line Feed not CRLF. And I wrote that part of the code and the help topic that goes with it. You would think I would remember correctly. My memory must be going. Sorry. Please let us know what the problem was when you get this to work. Did it have something to do with the separator (\s) characters? Joe: Thanks for posting the example without pointing out my mistake. Quote Link to comment Share on other sites More sharing options...
randallc Posted February 10, 2005 Author Report Share Posted February 10, 2005 thanks,. Yes, Kevin, the "\s" is pesky! Because of the paragraph marks in those text boxes, I could not put the whole macro line in a string to edit out the CRLFs. I was trying to do that first in Word, but that seemed to randomly lose some of the CHR(1) ("\s"?), and I didn't realize at first. I think I was also having trouble with the %N99% in the field for date setting "days before" and had to add some "000000" to it. Here is my current macro to try to put, from the clipboard, a copied macro line into a string; what do you think? Has someone got something better worked out? There will always be some direct editing, no doubt, but at least this gets it in a string ready to look at! Best, Randall MacroRunStringMaker.mxe Quote Link to comment Share on other sites More sharing options...
kevin Posted February 11, 2005 Report Share Posted February 11, 2005 Randall, I'm glad it is working out. I looked at your macro and it looks fine. I was trying to do that first in Word, but ...Yes, it is important to use a text editor, not a word processor. Notepad works fine. ... I was also having trouble with the %N99% in the field for date setting "days before" and had to add some "000000" to it.It surprises me that this is necessary. What does the original macro command look like? 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.