CVar Function

Syntax:

CVar(expr)

Group:

Conversion

Description:

 

Convert to a variant value.

 

Parameter

Description

expr

Convert a number or string value (or object reference) to a variant value.

 

Example:


Sub Main
  Debug.Print CVar(Sqr(2)) ' 1.4142135623731
End
Sub