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.

FIND_OLE_VERB built-in<br />

Description<br />

Returns an OLE verb index. An OLE verb specifies the action that you can perform on an OLE object,<br />

and each OLE verb has a corresponding OLE verb index. The OLE verb index is returned as a<br />

VARCHAR2 string and must be converted to NUMBER when used in FORMS_OLE.EXE_VERB. You<br />

must define an appropriately typed variable to accept the return value.<br />

Syntax<br />

FUNCTION FIND_OLE_VERB<br />

(item_id Item,<br />

verb_name VARCHAR2);<br />

FUNCTION FIND_OLE_VERB<br />

(item_name VARCHAR2,<br />

verb_name VARCHAR2);<br />

Returns VARCHAR2<br />

Built-in Type unrestricted function<br />

Enter Query Mode no<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 />

verb_name Specifies the name of an OLE verb. An OLE verb specifies the action that<br />

you can perform on an OLE object. Use the <strong><strong>Form</strong>s</strong>_OLE.Get_Verb_Name<br />

built-in to obtain this value. The data type of the name is VARCHAR2<br />

string.<br />

FIND_OLE_VERB restrictions<br />

Valid only on Microsoft Windows and Macintosh.<br />

FIND_OLE_VERB examples<br />

132<br />

/*<br />

** Built-in: EXEC_VERB<br />

** Example: Finds an OLE verb index for use with the<br />

** <strong><strong>Form</strong>s</strong>_OLE.Exec_Verb built-in.<br />

** trigger: When-Button-Pressed<br />

*/<br />

DECLARE<br />

item_id ITEM;<br />

item_name VARCHAR(25) := ’OLEITM’;<br />

verb_index_str VARCHAR(20);<br />

verb_index NUMBER;

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

Saved successfully!

Ooh no, something went wrong!