Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Looping over function arguments

Mark.ThompsonDec 30 2013 — edited Dec 31 2013

I know this must be simple, but I'm apparently not finding the right Google search terms.

I have a function called foo, into which I want to pass some indeterminate number of arguments.  Each argument will be the name of a page item. 

For example: foo('P21_CUST_NAME','P21_CUST_CITY','P21_CUST_ZIP');

I want to iterate (loop) over the arguments and test the values of each item.    Foo will return a string such as .y.n.y. which will then be searched to find any occurrences of .n.  If any occurrences of .n. are found, then the page has not been completed fully, and I will show a red icon. 

I want to build this as a general purpose function that can accept any number of arguments.  The logic within the loop (i.e. null or not) is not at issue here.  I can do that without a problem.  I just need to know how to loop over every argument passed into foo, whether there is one argument, or three, or twenty-seven.

Thoughts, please?

Apex 4.2.3.00.08

This post has been answered by fac586 on Dec 31 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 28 2014
Added on Dec 30 2013
9 comments
866 views