FieldSpec.Val Method (Typed) | |
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
public virtual Usual Val(
string cString
)
Request Example
View SourceParameters
- 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:
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