Hi,
If I created a function that adds values to a database table, how can I get more than one value returned from that function?
multiple function returns
Moderator: General Moderators
- aceconcepts
- DevNet Resident
- Posts: 1424
- Joined: Mon Feb 06, 2006 11:26 am
- Location: London
Re: multiple function returns
Have the function return an array.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: multiple function returns
FYI, when the script hits a return, it will terminate the execution of that scope.