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.

GET_VERB_COUNT built-in<br />

Description<br />

Returns the number of verbs that an OLE server recognizes. An OLE verb specifies the action that you<br />

can perform on an OLE object, and the number of verbs available depends on the OLE server. The<br />

number of verbs is returned as a VARCHAR2 string and must be converted to NUMBER for use in<br />

determining the verb index and verb name for each verb. You must define an appropriately typed<br />

variable to accept the return value.<br />

Syntax<br />

FUNCTION GET_VERB_COUNT<br />

(item_id Item);<br />

FUNCTION GET_VERB_COUNT<br />

(item_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 />

GET_VERB_COUNT restrictions<br />

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

GET_VERB_COUNT examples<br />

/*<br />

** Built-in: GET_VERB_COUNT<br />

** Example: Obtains the number of verbs that the OLE server<br />

** issues and recognizes when executed from the OLE container.<br />

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

*/<br />

DECLARE<br />

item_id ITEM;<br />

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

verb_cnt_str VARCHAR(20);<br />

verb_cnt NUMBER;<br />

verb_name VARCHAR(20);<br />

loop_cntr NUMBER;<br />

BEGIN<br />

item_id := Find_Item(item_name);<br />

IF Id_Null(item_id) THEN<br />

237

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

Saved successfully!

Ooh no, something went wrong!