error text format
-
- Posts: 774
- Joined: Wed May 17, 2017 8:50 am
- Location: Germany
error text format
Hi Chris
no show-stopper, but when a error is thrown its annoying that the MsgBox content is not formatted. To overcome the issue i simply added horizontal tabs to the Error:Tostring() method.
e.g.
...
sb:AppendLine( e"Descriptiont: " + SELF:Description)
sb:AppendLine( e"SubSystemt: " + SELF:SubSystem )
sb:AppendLine( e"GenCodett: " + nGenCode:ToString() )
sb:AppendLine( e"GenCodeTextt: " + SELF:GenCodeText )
...
What do you think ?
attached you find a viaef that shows the default and the modified Tostring() behaviour.
regards
Karl-Heinz
no show-stopper, but when a error is thrown its annoying that the MsgBox content is not formatted. To overcome the issue i simply added horizontal tabs to the Error:Tostring() method.
e.g.
...
sb:AppendLine( e"Descriptiont: " + SELF:Description)
sb:AppendLine( e"SubSystemt: " + SELF:SubSystem )
sb:AppendLine( e"GenCodett: " + nGenCode:ToString() )
sb:AppendLine( e"GenCodeTextt: " + SELF:GenCodeText )
...
What do you think ?
attached you find a viaef that shows the default and the modified Tostring() behaviour.
regards
Karl-Heinz
- Attachments
-
[The extension viaef has been deactivated and can no longer be displayed.]
error text format
Hi Karl-Heinz,
Thanks, I agree it is better this way (provided the tabs do not get disturbed when people use different system font sizes!), but I would prefer to put the ":" just after the captions, not tabbed with the values as well, do you agree?
What everybody else thinks? Those are the 3 options, first one is the current one:
Thanks, I agree it is better this way (provided the tabs do not get disturbed when people use different system font sizes!), but I would prefer to put the ":" just after the captions, not tabbed with the values as well, do you agree?
What everybody else thinks? Those are the 3 options, first one is the current one:
- Attachments
-
- Error3.png (6.85 KiB) Viewed 616 times
-
- Error2.png (6.85 KiB) Viewed 616 times
-
- Error1.png (6.9 KiB) Viewed 616 times
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
error text format
I like #3, but shrink the tab width to the possible minimum...Or, add a dotted line between to lead the eye from key to value. Eyes and brain are getting older
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
error text format
Hi Chris,
I would vote for #3.
Wolfgang
I would vote for #3.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
- lumberjack
- Posts: 727
- Joined: Fri Sep 25, 2015 3:11 pm
- Location: South Africa
-
- Posts: 774
- Joined: Wed May 17, 2017 8:50 am
- Location: Germany
error text format
Hi Chris,
#3 is the best
regards
Karl-Heinz
#3 is the best
regards
Karl-Heinz
error text format
#3 it is then, thanks to all for your input!
Unfortunately printing Error:ToString() to the console does not look as nice (extra tabs are shown as extra tabs...), but I think it's still better than before.
Unfortunately printing Error:ToString() to the console does not look as nice (extra tabs are shown as extra tabs...), but I think it's still better than before.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
error text format
Karl-Heinz,
The fact that you are now reporting that the format of the error message is incorrect means to me that have indeed reached a mature product!
Robert
The fact that you are now reporting that the format of the error message is incorrect means to me that have indeed reached a mature product!
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
-
- Posts: 774
- Joined: Wed May 17, 2017 8:50 am
- Location: Germany
error text format
Hi Robert,robert wrote:Karl-Heinz,
The fact that you are now reporting that the format of the error message is incorrect means to me that have indeed reached a mature product!
Robert
yes, with every new build it's getting harder and harder to find bugs - at least in the areas I'm investigating
Seriously: There are problems with some round() results, but i´ll open a new thread on that.
regards
Karl-Heinz
-
- Posts: 774
- Joined: Wed May 17, 2017 8:50 am
- Location: Germany
error text format
Hi Chris,Chris wrote:Unfortunately printing Error:ToString() to the console does not look as nice (extra tabs are shown as extra tabs...), but I think it's still better than before.
I´m not convinced i think the better choice is that the window view looks good. So it´s IMO better to keep the two tabs in the following lines.
Code: Select all
sb:AppendLine(e"GenCode :tt" + nGenCode:ToString() )
sb:AppendLine(e"SubCode :tt" + SELF:SubCode:ToString() )
sb:AppendLine(e"OsCode :tt" + SELF:OsCode:ToString() )
sb:AppendLine(e"FuncSym :tt" + SELF:FuncSym )
sb:AppendLine(e"Severity :tt" + sev:ToString() )
sb:AppendLine(e"CanRetry :tt" + SELF:CanRetry )
sb:AppendLine(e"Tries :tt" + SELF:Tries:ToString() )
sb:AppendLine(e"ArgType :tt" + TypeString(SELF:ArgType ) )
sb:AppendLine(e"ArgNum :tt" + SELF:ArgNum:ToString() )
sb:AppendLine(e"Arg :tt" + SELF:Arg)
sb:AppendLine(e"Args :tt" + cArgs)
regards
Karl-Heinz
- Attachments
-
- ErrorTwoTabStops.jpg (63.21 KiB) Viewed 616 times
-
- ErrorTabstopsCurrent.jpg (35.61 KiB) Viewed 616 times
-
- ErrorTwoTabStops.jpg (63.21 KiB) Viewed 616 times
-
- ErrorTabstopsCurrent.jpg (35.61 KiB) Viewed 616 times