Frosty the Coder
Legendary Poster
Ok, here's an "old dog looking for
new tricks question"....
W/in WORLD, you could override the
#of display decimals (report or screen)
at RUNTIME by programatically changing
the appropriate field (I _think_ it was
##DCOR). This would allow a pgm to display
0 decimals under some conditions and
2 under other conditions.
IS IT POSSIBLE, w/in an XE UBE to do so?
I've got a report that MOST OF THE TIME
displays w/0 decimals on the dollar fields.
HOWEVER, in one instance the values represent
a percent, and they want to show 2 decimals.
I realize that I could add a second set of
controls (for the percents), and hide/show
the dollar and percent controls as needed,
but was wondering if there was a better
(or at least different) method.
TIA
Gene
Gene Piekarski, Jr
AS/400, B733, SP11.2, NT client
AS/400, B733, SP14, W2000 client
XE, SP15.1
new tricks question"....
W/in WORLD, you could override the
#of display decimals (report or screen)
at RUNTIME by programatically changing
the appropriate field (I _think_ it was
##DCOR). This would allow a pgm to display
0 decimals under some conditions and
2 under other conditions.
IS IT POSSIBLE, w/in an XE UBE to do so?
I've got a report that MOST OF THE TIME
displays w/0 decimals on the dollar fields.
HOWEVER, in one instance the values represent
a percent, and they want to show 2 decimals.
I realize that I could add a second set of
controls (for the percents), and hide/show
the dollar and percent controls as needed,
but was wondering if there was a better
(or at least different) method.
TIA
Gene
Gene Piekarski, Jr
AS/400, B733, SP11.2, NT client
AS/400, B733, SP14, W2000 client
XE, SP15.1