method changeValue(var eventInfo ValueEvent)
DoDefault
If Deductions.Value<>""and Self.Value<>""
Then
Taxable.Value=Self.Value-Deductions.Value
Tax_Due.Value=Taxable.Value*.06
Percent.Value=Deductions.Value/Self.Value
endif
endMethod
Above is a method that I use on a form which has a table on it, everything works just fine, however, I would like the Taxable.Value (currency field) to round to the nearest number, as in $185.56 = $186.00 or $185.25 = $185.00.
Can I add something to the code in order to get this result?
Many thanks
Reinaldo
DoDefault
If Deductions.Value<>""and Self.Value<>""
Then
Taxable.Value=Self.Value-Deductions.Value
Tax_Due.Value=Taxable.Value*.06
Percent.Value=Deductions.Value/Self.Value
endif
endMethod
Above is a method that I use on a form which has a table on it, everything works just fine, however, I would like the Taxable.Value (currency field) to round to the nearest number, as in $185.56 = $186.00 or $185.25 = $185.00.
Can I add something to the code in order to get this result?
Many thanks
Reinaldo