PDA

View Full Version : Bug with "\n" in Display Message Box



NewsArchive
08-25-2019, 07:45 AM
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

NewsArchive
08-25-2019, 07:46 AM
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

NewsArchive
08-25-2019, 07:46 AM
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

NewsArchive
08-25-2019, 07:47 AM
Thank you!!

Best regards
Jeffrey

NewsArchive
08-25-2019, 07:49 AM
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,

NewsArchive
08-25-2019, 07:50 AM
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

NewsArchive
08-25-2019, 07:51 AM
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

NewsArchive
08-25-2019, 07:53 AM
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

NewsArchive
08-25-2019, 07:53 AM
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.

NewsArchive
08-25-2019, 07:54 AM
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

NewsArchive
08-25-2019, 07:54 AM
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

NewsArchive
08-25-2019, 07:55 AM
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

NewsArchive
08-25-2019, 07:56 AM
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

NewsArchive
08-25-2019, 07:57 AM
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

NewsArchive
08-28-2019, 07:36 AM
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

NewsArchive
09-05-2019, 03:23 AM
THANK YOU, Jeff!
(And you, too, chopped liver <g> )

That isn't obscure at all.....

Gonna see if setting it here sticks....

jf

NewsArchive
09-05-2019, 03:24 AM
Jane,

> (And you, too, chopped liver <g> )

Yeah, yeah, whatever!

Oh, and it stuck!

Lee White