Wendy, I use/write functions all the time. I love 'em. You can return ANYTHING you want from a single digit to an array. If you have some specific questions, ask away.
Ed Burwell 973-361-5400 ext. 1512 [EMAIL PROTECTED] -----Original Message----- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 22, 2005 2:47 PM To: [email protected] Subject: [U2] Custom Functions I was just looking at the documentation for FUNCTION after hearing a couple of people make reference to custom functions. How did we not know about this?! (Has this always been possible, or was it added recently?) We consider subroutines fairly "expensive" in terms of system resources, and tend to just use GOSUB within most programs. But coming from the Java/OO world, the global variables are *killing* me. And I'm partial to the nested parenthesis notation as well. Does anyone have any best practice advice or gotchas to impart? We have a need to find the "Ultimate Parent" in a tree of corporation/parent/subsidiary relationships. In particular, I might find a case where there is more than one "Ultimate Parent" and I need to signify an error. Do I return -1, or set @SYSTEM.RETURN.CODE to a positive number? Thanks, -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University, PA, IRM ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/ ______________________________________________________________________ This e-mail has been scanned by MCI Managed Email Content Service, using Skeptic(tm) technology powered by MessageLabs. For more information on MCI's Managed Email Content Service, visit http://www.mci.com. ______________________________________________________________________ ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
