FieldsGetDecimalValue Method |
Get the value for the specified field, converted to a decimal.
The behaviour when the field is not found is dictated by the
FindBehaviour parameter.
Namespace:
NetQuarry.Data
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntaxpublic decimal GetDecimalValue(
string key,
decimal defaultValue,
FindBehaviour behaviour
)
Public Function GetDecimalValue (
key As String,
defaultValue As Decimal,
behaviour As FindBehaviour
) As Decimal
Parameters
- key
- Type: SystemString
The key of the field for which to get the value. - defaultValue
- Type: SystemDecimal
The value to return when the field is not found. - behaviour
- Type: NetQuarry.DataFindBehaviour
Specifies the behaviour when the field is not found.
Return Value
Type:
DecimalThe field's value (converted to an decimal) if found and non-null, else the provided defaultValue.
RemarksDecimal values are most commonly used for currency (monetary) data.
See Also