DisplayFormat in RAP
The DisplayFormat property in RAP operates on string values as well as
numeric values.
However, it does give different results when operating on the the string
representation of a number compared to the numeric representation of the
same value.
For example:
Format Number Result String Result
------ ------ ------ ------ ------
# 123 123 123 3
### 123 123 123 123
0.0 2.0 2.0 2.0 2.
0.0 2.3 2.3 2.3 2.3
0.0 2.28 2.3 2.28 2.2
Richard Harding
numeric values.
However, it does give different results when operating on the the string
representation of a number compared to the numeric representation of the
same value.
For example:
Format Number Result String Result
------ ------ ------ ------ ------
# 123 123 123 3
### 123 123 123 123
0.0 2.0 2.0 2.0 2.
0.0 2.3 2.3 2.3 2.3
0.0 2.28 2.3 2.28 2.2
Richard Harding
This discussion has been closed.
Comments
All display format processing is done inside the ppDisplayFormat.pas file.
If you take a look at this file you can see that text values are formatted
using the Delphi routine FormatMaskText and numeric values are formatted
using the FormatFloat or FloatToStrF routines.
Replacing the display format can be done using the technique in the
following article.
http://www.digital-metaphors.com/rbWiki/Design/Formatting/Change_the_existing_display_formats
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Richard Harding