Char 9.1C - Browser showing misaligned decimal in Accounting format

gummbeey

New Member
Hello,

I'm running 9.1c in Unix (Char).

I have a browser showing a decimal using the Accounting format.. which means instead of showing the negative sign for negative numbers, it puts it in parenthesis.

Anyways, when I open the query of the browser, the decimal point is misaligned like this example below.

amt
------------
> 48,979.95
(67,845.53)
23.88


This shows up properly in Windows. This misalignment only happens when I'm running it in Character.

Heres the code:

def temp-table tt-table
field amt as dec format "(>>>,>>9.99)".


def query q-tt-table for tt-table.
def browse br-table
query q-tt-table
display amt
with 3 down.


create tt-table. assign tt-table.amt = 48979.95.
create tt-table. assign tt-table.amt = -67845.53.
create tt-table. assign tt-table.amt = 23.88.


open query q-tt-table for each tt-table.
enable browse br-table.
apply "entry" to browse br-table.
wait-for close of current-window.


Thanks,
gummbeey

 

JulieC

New Member
Using a format of "(zzz,zz9.99)" will get you closer to aligning the decimals, it looks like it still doesn't align ones that are negative.

Hope that helps some.
 
Top