Hello,
I have a situation whereby I need to alternate the no of decimal places for a decimal field during input depending on whether the value entered exceeds 2 decimal places.
Can you tell me how to check whether the input exceeds two decimal places (i.E. 3 Decimal Places) and then how to allow this input of three decimal places or limit to 2 decimal places.
Thanks
Set the Property :- DecimalPlaces to 2
This will give you a error if you enter more than 2 decimal values.
Yes but I want to do this dynamically so based on value entered if 3 decimal places and a given condition true fine set value to 3 decimal places else if condition false set to 2 decimal places.
Please help.
Which version of Navision you are using ???
Try this…
http://msdn.microsoft.com/en-us/library/dd301418.aspx
IF THEN
NewNumber := ROUND(Number, 0.01, = )
ELSE
NewNumber := ROUND(Number, 0.001, = );