VARIANT$ function

Purpose

Return the dynamic string value contained in a Variant variable.

Syntax

stringvar = VARIANT$(vrntvar)

Remarks

VARIANT$ automatically converts the Variant string from Wide/Unicode format to ANSI.

Restrictions

VARIANT$ presumes that a valid string value is present (not an array); otherwise, an empty string is returned.

See also

DIM, LET, OBJECT, SET, VARIANT#, VARIANTVT

Example

DIM vVnt AS VARIANT

vVnt = "Hello World"

a$ = VARIANT$(vVnt)