Sign in Join
FPDoc Onlineexperiment

VarArrayAsPSafeArray function

In unit Variants

Return internal array of variant value.

Declaration

pascal
function VarArrayAsPSafeArray(const A: Variant): pvararray

Arguments

A

Variant to check.

Function result

The internal array pointer.

Description

VarArrayAsPSafeArray returns the internal array of the variant A if it is a variant array. If not, an exception is raised.

Errors

if the variant A is not an array, an EVariantInvalidArgError exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.