CrGlobal: BooleanFromString

BooleanFromString

determine whether the specified string represents a true value or false value

 Public Function BooleanFromString(
	  StringValue As String,
	  Optional ByVal Strict As Boolean = False ) As Boolean

Parameters

StringValue
[ByRef] String. test string
Strict
[ByVal] Optional. Boolean. whether the string needs to explicitly specify truth  

Default: False

Return Values

Boolean -  resulting truth value

Remarks

Concerning unknown (or unchecked) values passed in StringValue: if Strict = True, then raise error, else return True if nonempty.

See Also

Project crgenlib Overview Class CrGlobal Overview CrGlobal Properties CrGlobal Methods BitValueBit CrArrayNew