Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 13 total
Thread TLabel and linefeeds
Mon, Nov 18 2013 10:59 AMPermanent Link

Matthew Jones

I have code that effectively does:

MyLabel.Caption := 'One';
MyLabel.Caption := MyLabel.Caption + #10 + 'Two';
MyLabel.Caption := MyLabel.Caption + #10 + 'Three';

On Chrome I get:

Three
Two
One

On IE 10 I get:

Three
TwoOne

Thoughts?

/Matthew Jones/
Mon, Nov 18 2013 11:57 AMPermanent Link

Mark Brooks

Slikware

Avatar

>>I have code that effectively does:
>>
>>MyLabel.Caption := 'One';
>>MyLabel.Caption := MyLabel.Caption + #10 + 'Two';
>>MyLabel.Caption := MyLabel.Caption + #10 + 'Three';
>>
>>On Chrome I get:
>>
>>Three
>>Two
>>One
>>
>>On IE 10 I get:
>>
>>Three
>>TwoOne
>>
>>Thoughts?

Stick with Chrome?
Mon, Nov 18 2013 6:24 PMPermanent Link

Jeff Cook

Aspect Systems Ltd

Avatar

From someone who is almost totally ignorant of EWB, JavaScript et al ...

Maybe use #13#10 (CR/LF)  instead of  just #10 ?
--
Jeff Cook
Aspect Systems Ltd
www.aspect.co.nz

"Matthew Jones" <matthew@matthew-jones.com> wrote in message
news:memo.20131118155906.9976E@nothanks.nothanks.co.uk...
>I have code that effectively does:
>
> MyLabel.Caption := 'One';
> MyLabel.Caption := MyLabel.Caption + #10 + 'Two';
> MyLabel.Caption := MyLabel.Caption + #10 + 'Three';
>
> On Chrome I get:
>
> Three
> Two
> One
>
> On IE 10 I get:
>
> Three
> TwoOne
>
> Thoughts?
>
> /Matthew Jones/

Tue, Nov 19 2013 4:01 AMPermanent Link

Matthew Jones

> Stick with Chrome?

I wish I could, but this project is going to be used by random people, and some
will have IE.

/Matthew Jones/
Tue, Nov 19 2013 4:01 AMPermanent Link

Matthew Jones

> Maybe use #13#10 (CR/LF)  instead of  just #10 ?

I have indeed tried variants around this. The help says that linefeeds are
supported, but not the exact character. I presume #10 which I'm fairly sure from my
days of modems* is LF.

/Matthew Jones/

*We used to do a lot of modem software, and one day the daughter of one of the
programmers came in to the office, and saw our ASCII chart on the wall. She said
she didn't need one of those any more as she knows her alphabet.
Wed, Nov 20 2013 1:22 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< I have code that effectively does: >>

What you want is #13+#10 (CRLF).  That should work on Chrome/FF and IE.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Nov 21 2013 5:10 AMPermanent Link

Matthew Jones

Thanks, but that doesn't work either. Checking the IE debugger, it shows that the
text is

five
<br/>
fourthreetwoone

In Chrome, the text is a simple list

five
four
three
two
one

The actual code is a button, which takes the text of an edit box and puts it in the
label. I want to keep a record of what was typed/sent. A list won't work so well in
iOS for the purpose.

lblSubmitted.Caption := szConceptText + #13 + #10 + lblSubmitted.Caption;

I've done a workaround now, with a list, and rebuilding the text each time. I could
actually just use a string probably - it will be the reading back of the value that
fails I guess.

   for nLoop := 0 to m_xSubmitList.Count - 1 do
       szBuild := szBuild + m_xSubmitList[nLoop] + #13 + #10;

Also note that the #13 isn't actually needed.

/Matthew Jones/
Wed, Nov 27 2013 10:33 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Thanks, but that doesn't work either. Checking the IE debugger, it shows
that the text is  >>

This works in the 1.03 candidate code:

  Label1.Caption := 'One';
  Label1.Caption := Label1.Caption + #10 + 'Two';
  Label1.Caption := Label1.Caption + #10 + 'Three';

I've made some changes to how line feeds/non-printable characters are
handled in the compiler, so that may have fixed it.

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Nov 27 2013 11:56 AMPermanent Link

Matthew Jones

> This works in the 1.03 candidate code:

Looking forward to it "next week". 8-)

The good thing about EWB is that it is quite usable as is, so delays don't matter
really (for me, at least).

/Matthew Jones/
Mon, Dec 2 2013 3:03 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Looking forward to it "next week". 8-) >>

Yeah, it's sitting here waiting for release, but it's waiting on the new
ElevateDB changes to allow for ANSI/Unicode usage within the same process.
I can't compile ElevateDB into EWB in its current state. Those changes, in
turn, are needed because of the upcoming web server switch to an off-site
data center, which is going to require a reduction in the number of
ElevateDB downloads that need to get uploaded with each new build.  I'm
dealing with a 1 depends upon 2 depends upon 3 depends upon 4 type of
situation right now. Smile

Thanks for everyone's patience, and it shouldn't be much longer.

Tim Young
Elevate Software
www.elevatesoft.com
Page 1 of 2Next Page
Jump to Page:  1 2
Image