The rounding you're seeing shouldn't be occuring unless there's something else going on.
If you are storing in a cursor or table, the value will be rounded to the decimals as set in the field. To avoid this you'd need to change the decimals for the field, or store the result somewhere else.
Local cConsole
cConsole = SET("CONSOLE")
SET CONSOLE OFF
SELECT DtlMawb
WITH Thisform.pfm.pgd
CALCULATE SUM(DtlMawb.ngrossout) ;
FOR HdrMawb.cnomawb = .txtcnomawb.Value AND NOT DELETED();
TO .txtnaGrossout.Value
CALCULATE SUM(DtlMawb.nVolout) ;
FOR HdrMawb.cnomawb = .txtcnomawb.Value AND NOT DELETED();
TO .txtnaVolout.Value
The code you posted does not necessarily save the values to fields. You're simply saving them to textbox values. Do you have these textboxes bound to fields? If so, it would be better to replace the fields directly. WHAT IS THE STRUCTURE OF THE FIELDS?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.