FieldSpec.Val Method | |
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
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual Val(
Usual cString = default
)
Request Example
View SourceParameters
- 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:
UsualRemarks
The FieldSpec:Val() method acts as the inverse of the FieldSpec:Transform() method, converting a transformed string back to its original value.
See Also