11.01.2013 Views

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

Oracle Forms Developer – Form Builder Reference, Volume 1

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TO_VARIANT built-in<br />

Description<br />

Creates an OLE variant and assigns it a value. There are four versions of the function.<br />

Syntax<br />

FUNCTION TO_VARIANT<br />

(newval NUMBER,<br />

vtype VT_TYPE<br />

persistence BOOLEAN)<br />

RETURN newvar OLEVAR;<br />

...or...<br />

FUNCTION TO_VARIANT<br />

(newval VARCHAR2,<br />

vtype VT_TYPE<br />

persistence BOOLEAN)<br />

RETURN newvar OLEVAR;<br />

...or...<br />

FUNCTION TO_VARIANT<br />

(source_table,<br />

vtype VT_TYPE<br />

arrspec VARCHAR2, persistence BOOLEAN)<br />

RETURN newvar OLEVAR;<br />

...or...<br />

FUNCTION TO_VARIANT<br />

(var OLEVAR,<br />

vtype VT_TYPE<br />

arrspec VARCHAR2, persistence BOOLEAN)<br />

RETURN newvar OLEVAR;<br />

Built-in Type unrestricted function<br />

Returns the newly-created OLE variant.<br />

Parameters<br />

newval The value to be given to the newly-created OLE variant.<br />

vtype The OLE VT_TYPE to be given to the newly-created<br />

variant.<br />

This is an optional parameter. If not specified, the<br />

default value for the NUMBER version of the function is<br />

VT_R8. For the VARCHAR2 version, the default is<br />

VT_BSTR. For the table version, the default is<br />

determined from the PL/SQL types of the table For the<br />

OLEVAR version, the default is the type of the source<br />

variant.<br />

persistence Controls the persistence of the variant after its creation.<br />

A boolean value of TRUE establishes the variant as<br />

persistent; a value of FALSE establishes the variant as<br />

non-persistent.<br />

443

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!