View previous topic :: View next topic
|
Author |
Message |
henry888
New User
Joined: 21 Sep 2009 Posts: 51 Location: china
|
|
|
|
I need two values to be returned when invoke the function procedure in my requirement.But in reference it's mentioned that :
A programmer-defined function can return only an element value.The function returns control and a value and aggregated cannot be returned.
In function procedure the two variables type is FIXED BIN(15) and FIXED BIN(31),because the aggregated cannot be returned so is there any simple method to combine them as a single return value to main program?The returned value should be easily parsed into two varibles as defined in function procedure?
If anyone has the good idea please teach me.
Thanks in advance! |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Just use two extra parameters, was that so hard? |
|
Back to top |
|
|
henry888
New User
Joined: 21 Sep 2009 Posts: 51 Location: china
|
|
|
|
prino wrote: |
Just use two extra parameters, was that so hard? |
yes,adding parameters will work out,thanks for you reply... |
|
Back to top |
|
|
donateeye Warnings : 2 New User
Joined: 01 Jun 2007 Posts: 62 Location: chennai
|
|
|
|
Can use subroutine procedure instead. |
|
Back to top |
|
|
|