A script-enabled browser is required for this page to function properly.

CREATE_VAR Built-in

Description

Creates an empty, unnamed variant. There are two versions of the function, one for scalars and the other for arrays.

Syntax

FUNCTION CREATE_VAR
(persistence BOOLEAN)
RETURN newvar OLEVAR;


FUNCTION CREATE_VAR
(bounds OLE_SAFEARRAYBOUNDS,
vtype VT_TYPE,
persistence BOOLEAN)
RETURN newvar OLEVAR;

Built-in Type unrestricted function

Returns the created OLE variant.

Parameters

persistence
 
Controls the persistence of the variant after its creation. A boolean value of TRUE establishes the variant as persistent; a value of FALSE establishes the variant as non-persistent.This is an optional parameter. If not specified, the default value is non-persistent.
 
 
bounds
 
A PL/SQL table that specifies the dimensions to be given to the created array.For more information about the contents and layout of this parameter and the type OLE_SAFEARRAYBOUNDS, see ARRAY TYPES FOR OLE SUPPORT.
 
vtype
 
The OLE variant type (VT_TYPE) of the elements in the created array. If the array will contain mixed element types, specify VT_VARIANT.
 

Usage Notes