08-20-2022, 11:59 AM
(08-19-2022, 01:36 PM)bartok Wrote: SUB Arrotonda! (num!)This is incorrect syntax either way because the name of the "SUB" cannot be used in assignment. Must be a "FUNCTION" instead.
Arrotonda! = _ROUND(num! * 100) / 100
END SUB
because the "!" is not admited and, without the "!", we will have:
SUB Arrotonda (num!)
Arrotonda = _ROUND(num! * 100) / 100
END SUB