Help Center

DVARIANT.ToStrmethod

Extracts the content of the underlying variant and returns it as a DWSTRING.

COMmethodDVARIANT.INCdocumented

Syntax

FUNCTION ToStr () AS DWSTRING

Return value

The contents of the variant as a DWSTRING.

Description

Extracts the content of the underlying variant and returns it as a DWSTRING.

Example

DIM dv AS DVARIANT = "Test string" DIM dws AS DWSTRING = dv.ToStr

Reference

  • Include file DVARIANT.INC
  • Defined in AfxNova/DVARIANT.inc:1764
  • Documented in COM/DVARIANT Class.md
  • Topic: DVARIANT Class