[rp 2.35] Expression Editor & line breaks // solved

This forum is meant for questions and discussions about the X# language and tools
Post Reply
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

[rp 2.35] Expression Editor & line breaks // solved

Post by FFF »

Robert,
there's a bug in the parsing of the expression editor.
If e.g. i put this in:
"23.09.2020 Flügelschlagquartett (2 Klaviere + 2 Schlagzeuger)" + CRLF + "11.11.2020 Trio con Brio (Klaviertrio aus Copenhagen)"
written on one line, the checker says: "expression valid"
If i enter a linebreak (using CTRL-Enter) after the "CRLF +" part, i get "error in the expression".

EDIT: got it, it follows the same rule as in source, after the "+" has to follow a semi-colon...
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

[rp 2.35] Expression Editor & line breaks // solved

Post by Chris »

Hi Karl,

Good idea, we should be able to safely strip out CRLFs from the expressions, will log this as a feature request. I wish you had suggested this 15 years ago, when I was using RP2 as a developer and was very annoyed by how the expression edit boxes worked in RP :)
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

[rp 2.35] Expression Editor & line breaks // solved

Post by FFF »

Well, who would have listened...
But you asked for it, so here goes:
a) if i want to make a new label report, it can't find "Label.sys" - my "Search everything" find's no such file on this computer, but the ol' 2.17k version works
b) Have a look, how i have to overlap the fields in the design, to get somewhat decent output. If i reduce the fieldheight only minimaly, the second line gets stripped from output. Feels like some mismatch between font size in designer and output...
Fieldheight.PNG
Fieldheight.PNG (15.63 KiB) Viewed 467 times
Fieldheight_2.PNG
Fieldheight_2.PNG (12.47 KiB) Viewed 467 times

c) if you remove "header and footer bands" from the section tab, "page properties" dissappears entirely

d) label report, two columns, 1cm midway distanced, have a look: the right label-border in the designer is painted at the position, where the left border of the second column-label starts, i.e. wronlgy includes the horzizontal gap value
Labelwidth.PNG
Labelwidth.PNG (18.61 KiB) Viewed 467 times
e) i paint a field in design, -> align, center horizontally in margins - won't result in centering to the label width -> ok, if one reads margins as per paper - but there's no center in label.
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

[rp 2.35] Expression Editor & line breaks // solved

Post by Chris »

Karl, can you please post a sample?
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

[rp 2.35] Expression Editor & line breaks // solved

Post by FFF »

Chris wrote:Karl, can you please post a sample?
Edited my post for better organization ;) For b) see Abo-Karten_Rückseite report. This report there's only fixed text used. Pls rename file to .rpt
For d) use Abo-Karten_V4 and do likewise.
For the other points i see no "sample", here one has to look into the designer :whistle:
Attachments
XSharp.7z
(3.76 KiB) Downloaded 93 times
Abo-Karten_V4 .txt
(9.98 KiB) Downloaded 99 times
Abo-Karten_Rückseite_V3.txt
(10.96 KiB) Downloaded 90 times
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

[rp 2.35] Expression Editor & line breaks // solved

Post by Chris »

Thanks, confirmed and logged! I am afraid those are not trivial issues like they may seem (designer to screen/printer translation is very complicated), but we'll look into them.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

[rp 2.35] Expression Editor & line breaks // solved

Post by FFF »

Thx - glad, it's not my usual stupidity ;)
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Post Reply