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.

loop_index_var := loop_index_var + 1;<br />

IF list_element_to_add = list_element THEN<br />

element_match := ’FALSE’;<br />

END IF;<br />

EXIT WHEN list_element = list_element_to_add OR<br />

loop_index_var = total_list_count;<br />

END LOOP;<br />

/*<br />

** Compare the current list item values with the value that<br />

** will be added.<br />

*/<br />

loop_index_var := 1;<br />

LOOP<br />

list_element_value:= Get_List_Element_Value(list_id,<br />

loop_index_var);<br />

loop_index_var := loop_index_var + 1;<br />

IF list_value_to_add = list_element_value THEN<br />

value_match := ’FALSE’;<br />

END IF;<br />

EXIT WHEN list_element_value = list_value_to_add OR<br />

loop_index_var = total_list_count;<br />

END LOOP;<br />

/*<br />

** Add the element and value if it is not in the current list<br />

*/<br />

IF element_match AND value_match = ’TRUE’ THEN<br />

Add_List_Element(list_id, list_name, list_element_to_add,<br />

list_value_to_add);<br />

END IF<br />

END;<br />

199

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

Saved successfully!

Ooh no, something went wrong!