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.

VBX.GET_PROPERTY built-in<br />

Description<br />

Obtains the value of a property from a VBX control.<br />

Syntax<br />

VBX.GET_PROPERTY<br />

(item_id ITEM,<br />

property VARCHAR2);<br />

VBX.GET_PROPERTY<br />

(item_name VARCHAR2,<br />

property VARCHAR2);<br />

Built-in Type unrestricted function<br />

Returns VARCHAR2<br />

Enter Query Mode yes<br />

Parameters<br />

item_id Specifies the unique ID that <strong>Form</strong> <strong>Builder</strong> assigns to the item when created.<br />

Use the FIND_ITEM built-in to return the ID to an appropriately typed<br />

variable. The data type of the ID is ITEM.<br />

item_name Specifies the name of the object created at design time. The data type of<br />

the name is VARCHAR2 string.<br />

property Specifies a property or an element of a property array for a VBX control. A<br />

set of VBX properties exists for any given VBX control. Examples of<br />

VBX properties are Width, Height, and FontSize. The data type of<br />

property is a VARCHAR2 string.<br />

VBX.GET_PROPERTY restrictions<br />

Valid only on Microsoft Windows.<br />

VBX.GET_PROPERTY examples<br />

/*<br />

** Built-in: VBX.GET_PROPERTY<br />

** Example: Uses the VBX.GET_PROPERTY built-in to obtain the<br />

** CURRTAB property of the VBX item named TABCONTROL.<br />

** The property value of CURRTAB is returned to the<br />

** TabNumber variable and is used as input in the<br />

** user-defined Goto_Tab_Page subprogram.<br />

** trigger: When-Custom-Item-Event<br />

*/<br />

DECLARE<br />

TabEvent varchar2(80);<br />

TabNumber char;<br />

BEGIN<br />

TabEvent := :system.custom_item_event;<br />

IF (UPPER(TabEvent) = ’CLICK’) then<br />

459

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

Saved successfully!

Ooh no, something went wrong!