Click or drag to resize

FieldSpec.Val Method

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

Namespace:  VO
Assembly:  VOSystemClasses (in VOSystemClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD Val(
	cString
) AS USUAL CLIPPER
Request Example View Source

Parameters

cString (Optional)
Type: Usual
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