Click or drag to resize

FieldSpec.Val Method (Typed)

X#
Convert a string to a value, according to this field specification's defined data type.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD Val(
	cString AS STRING
) AS USUAL
Request Example View Source

Parameters

cString
Type: String
The string to convert. If the string cannot be converted to the appropriate value, this method returns NIL and sets FieldSpec:Status to indicate the reason for the failure (note that FieldSpec:Val() performs no other validations).

Return Value

Type: Usual
Remarks
The FieldSpec:Val() method acts as the inverse of the FieldSpec:Transform() method, converting a transformed string back to its original value.
See Also