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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VBX.GET_VALUE_PROPERTY built-in<br />

Description<br />

Gets the VBX Control Value Property of a VBX control.<br />

Syntax<br />

VBX.GET_VALUE_PROPERTY<br />

(item_id ITEM);<br />

VBX.GET_VALUE_PROPERTY<br />

(item_name VARCHAR2);<br />

Built-in Type unrestricted function<br />

Returns property<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 />

VBX.GET_VALUE_PROPERTY restrictions<br />

Valid only on Microsoft Windows.<br />

VBX.GET_VALUE_PROPERTY examples<br />

/*<br />

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

** Example: Passes the VBX Control Value to the user-defined<br />

** Verify_Item_Value subprogram. Verify_Item_Value<br />

** ensures the display value is the expected value.<br />

*/<br />

DECLARE<br />

ItemName VARCHAR2(40) := ’SPINBUTTON’;<br />

VBX_VAL_PROP VARCHAR2(40);<br />

BEGIN<br />

VBX_VAL_PROP := VBX.Get_Value_Property(ItemName);<br />

Verify_Item_Value(VBX_VAL_PROP);<br />

END;<br />

461

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

Saved successfully!

Ooh no, something went wrong!