Click or drag to resize

IFieldToValue Method

Parse the provided text as specified in the IAppContext, IField, and user preferences. This takes into account the IFieldNativeDbType, OleDbType, CellType, Format, etc. Note that the result will be parsed as it would be if the field's Value were being set via DisplayTextSet(String). This method is the inverse of ToDisplayText(Object, ValueConversionFlags).

Note that this method does not set the field's Value. Note also that the method does not use the mapper's operational data from other fields and so, for example, discrim values will not be applied.

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
Object ToValue(
	string displayText,
	ValueConversionFlags flags
)

Parameters

displayText
Type: SystemString
The text to convert to its corresponding raw value.
flags
Type: NetQuarry.DataValueConversionFlags
Flags specifying how the conversion should be performed.

Return Value

Type: Object
The raw value in the appropriate data type for the specified text.
See Also