Click or drag to resize

MvValueAsChar Method

Converts to char.

Namespace:  RW.Server.Component
Assembly:  RW.Server.Component (in RW.Server.Component.dll) Version: 7.2.0.0 (7.2.0.0)
Syntax
public virtual char AsChar(
	bool direct = false,
	char def = ''
)

Parameters

direct (Optional)
Type: SystemBoolean
If true, an exact type match is required.
def (Optional)
Type: SystemChar
The default result.

Return Value

Type: Char
If the match is exact, the contained value. Otherwise, and if an exact type match is not required: If the type is user-defined, the result of AsUserValue.AsChar(def).If the type is numeric (including char), true if different from 0), false otherwise.Otherwise, true if the value is not null, false otherwise.
See Also