PowerBuilder Function Return An Array.
In the function you cannot return an array. Powerbuilder error “returned expression cannot be an array”.
If you still want to do that using the any data type and append it to an array
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
//==================================================================== // Function: f_return_array() //-------------------------------------------------------------------- // Returns: any, an array //-------------------------------------------------------------------- // Usage: f_return_array ( ) // string ls_array[] // ls_array = f_return_array() //==================================================================== String ls_array[] Any la_return ls_array[1] = "A" ls_array[2] = "B" ls_array[3] = "C" la_return = ls_array Return la_return |
Good Luck!
Subscribe
Login
0 Comments
Oldest