ActiveReports 12
Explicit Type Conversion(Boolean,Variant) Operator

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.DataEngine Namespace > Variant Structure > Explicit Type Conversion Operator : Explicit Type Conversion(Boolean,Variant) Operator
The Variant to be converted.
Conerts given Variant to boolean.
Syntax
'Declaration
 
Overloads Public Operator Narrowing CType( _
   ByVal v As Variant _
) As Boolean
public bool operator explicit( 
   Variant v
)

Parameters

v
The Variant to be converted.

Return Value

Returns True if: - the Variant is boolean 'True'; - the Variant is numeric non-zero; - the Variant is string represents numeric non-zero value; - the Variant is string other than 'False'; - the Variant is TimeSpant other than TimeSpan.Zero; - the Variant is DateTime other than default(DateTime); - the Variant is object other than null; Returns False in all other cases.
See Also

Reference

Variant Structure
Variant Members
Overload List