The number of decimal places accepted can now be set for the Numeric Text Box Control.
The Decimal Places property controls the number of decimal places shown in the control. If the value is set to a negative value, DriveWorks automatically determines the required number of decimal places.
Property Type: Static
Default Value: -1
Ensure the property is a static property (It will display the gray orb alongside the property name)
The default value of the static property can be changed by typing the required value directly into the property field.
Decimal Places Property Value (static) | Result | Notes |
---|---|---|
4 | Will truncate the entered value to 4 decimal places. |
A rule can also be built for this property by changing the type to dynamic.
Decimal Places Property Value (Dynamic) | Result | Notes |
---|---|---|
IF( LengthReturn<25, 3, 2) | Will truncate the entered value to 3 decimal places, when the control Length is less than 25, otherwise 2 decimal places will be allowed. |
See Also
Welcome to DriveWorks Solo 11 What's New
Value set in Form Designer. For DriveWorks projects static properties can be made Dynamic by double clicking the gray radio button.