Bug with "\n" in Display Message Box
Hi Friedrich,
I use "Display Message Box" with for example the following text:
c:\nginx\nginxservice.exe
When the setup runs I get a message with the following truncated info:
c:
ginx
ginxservice.exe
So how can I prevent in this situation that \n won't be converted to a
new line. A bit frustrating.
--
Best regards,
Jeffrey Kuijt
Re: Bug with "\n" in Display Message Box
Hi Jeffrey,
> c:\nginx\nginxservice.exe
>
>
> When the setup runs I get a message with the following truncated info:
>
> c:
> ginx
> ginxservice.exe
What happens if you double up the backslash?
c:\\nginx\\nginxservice.exe
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
1 Attachment(s)
Re: Bug with "\n" in Display Message Box
Jeffrey,
> I use "Display Message Box" with for example the following text:
>
> c:\nginx\nginxservice.exe
If you want no other text or line feeds check the option flag.
Lee White
Re: Bug with "\n" in Display Message Box
Thank you!!
Best regards
Jeffrey
1 Attachment(s)
Re: Bug with "\n" in Display Message Box
You mean like the attached?
(although I still haven't figured how to make agent actually put a
picture in the same message...)
jf
>What happens if you double up the backslash?
>
>c:\\nginx\\nginxservice.exe
>
>Best regards,
Re: Bug with "\n" in Display Message Box
Click the "Attachments" button
Then the "Properties" button on the new window.
Untick "Send text as preface"
>(although I still haven't figured how to make agent actually put a
>picture in the same message...)
Jeff Slarve
www.jssoftware.com
Bits and Bytes are Dy-No-Myte
3 Attachment(s)
Re: Bug with "\n" in Display Message Box
Jeff,
> Click the "Attachments" button
>
> Then the "Properties" button on the new window.
>
> Untick "Send text as preface"
After that you can simply drag and drop on the "Attachments" button or
entry and you're done.
I may have to stop using Chrome since this "Waiting For Cache" is
constantly locking my system and making my desktop useless. I've tried
every suggestion I can find and nothing wants to fix it. ARGH!
Lee White
Re: Bug with "\n" in Display Message Box
Hi Jane,
> You mean like the attached?
> (although I still haven't figured how to make agent actually put a
> picture in the same message...)
Apparently that didn't exactly fix it<g> I can't find any information
about how to actually escape \n and \r - I assume this problem would
also come up with C:\register\randomly
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
Re: Bug with "\n" in Display Message Box
Arnor,
> Apparently that didn't exactly fix it<g> I can't find any information
> about how to actually escape \n and \r - I assume this problem would
> also come up with C:\register\randomly
\r is not a problem since it's just a carriage return but \n can be
ignored with an existing option for Display Message. The limitation is
that you cannot use a new line in the message or you simply see \n
inserted into the string.
--
Lee White
RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com
Creative Reporting: http://www.CreativeReporting.com
Product Release & Update Notices
http://twitter.com/DeveloperPLUS
Hydrogen, the only CLEAN fuel and the future of clean air.
Re: Bug with "\n" in Display Message Box
Perhaps creating a wrapper for Clarion's MESSAGE() in a support DLL
would be the most expedient way to solve this dilemma?
Jeff Slarve
www.jssoftware.com
Bits and Bytes are Dy-No-Myte
Re: Bug with "\n" in Display Message Box
Jeff,
> Perhaps creating a wrapper for Clarion's MESSAGE() in a support DLL
> would be the most expedient way to solve this dilemma?
It's an option although using "\ nwhatever" is also. Yes, the space is
noticeable but do users ever actually READ this stuff?<g>
Lee White
Re: Bug with "\n" in Display Message Box
Hi Lee,
> \r is not a problem since it's just a carriage return but \n can be
I would have expected \r to start a new string on the same line so you'd
get overwriting.
What happens if you put this into a variable and use the variable in the
message?
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
1 Attachment(s)
Re: Bug with "\n" in Display Message Box
Arnor,
> I would have expected \r to start a new string on the same line so you'd
> get overwriting.
>
> What happens if you put this into a variable and use the variable in the
> message?
Works. From what I've seen \n for newline is the only usage in SB.
Lee White
Re: Bug with "\n" in Display Message Box
Hi Lee,
> Works. From what I've seen \n for newline is the only usage in SB.
Cool!
Best regards,
--
Arnor Baldvinsson
Icetips Alta LLC
Re: Bug with "\n" in Display Message Box
Hi,
Instead of using "\n", why not using another combination which is more
unique, for example: <13,10>
Because I want in my message box:
1. c:\nginx\nginxservice.exe
2. *AND* new lines
At this moment, I guess this is not possible?
Best regards,
Jeffrey Kuijt
1 Attachment(s)
Re: Bug with "\n" in Display Message Box
THANK YOU, Jeff!
(And you, too, chopped liver <g> )
That isn't obscure at all.....
Gonna see if setting it here sticks....
jf
Re: Bug with "\n" in Display Message Box
Jane,
> (And you, too, chopped liver <g> )
Yeah, yeah, whatever!
Oh, and it stuck!
Lee White