formating data when display html

aviovda

New Member
hello all
i have difficulty in displaying data with a desired format
(especially numbers)
for example numbers displays with no thousandths separator.

can someone guide me please.


attached for example this code that
displays always 1000 but not 1,000:confused: .


thank you very much.

<!--WSS
def var ptsftystk as decimal no-undo format ">>>,>>9.99".
for each pt_mstr no-lock where
pt_sfty_stk > 1000:
ptsftystk = pt_sfty_stk.
-->
<tr>
<td> `(ptsftystk)` </td>
</tr>
<!--WSS
end. -->
 

gcampbell

Member
Wrap it with the STRING function and add the formatting there ...

eg: `STRING(yourdecvar,"99,999.99")`

Later,
Gordon
 
Top