Help Center

DVARIANT.ToBstrmethod

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

COMmethodDVARIANT.INCdocumented

Syntax

FUNCTION ToBstr () AS BSTRING

Return value

The contents of the variant as a BSTRING.

Description

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

Example

DIM dv AS DVARIANT = "Test string" DIM bs AS BSTRING = dv.ToBstr

Reference

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