DecimalNvlExpression is used specify how to treat a NULL value in a Decimal property (or field or variable). If the Decimal appears to be NULL, it will be assigned a default value or a specified value.
public ReadOnlyDecimalProperty DecimalNvlExample
{
get
{
return CalculatedDecimalProperty(() =>
Operation.EditItem.Number.Nvl());
}
}
The example above works as follows.
DecimalNvlExample.Operation.EditItem.Number is evaluated, by adding .Nvl.DecimalNvlExample will be assigned the value after Nvl between parentheses. When nothing is specified, the default value will be zero (0).
Article ID: 265
Created: Thu, Dec 5, 2019
Last Updated: Mon, Jan 13, 2020
Online URL: https://wiki-ai-framework.abstract-it.nl/article/decimalnvlexpression-265.html