PBDR.COM

About   -   Contact   -   Purchase   -   Search   -   What's New

 
 
Returning an Array From a Function
This tip was submitted by Sameer Kulkarni.

PowerBuilder allows to pass arrays to a function. But what if you want to return an array from function? PowerBuilder does not allow that. It provides only for returning a single array element from the function.

Here is a simple trick to do that. Create a structure with one of its elements as an array of that data type and return that structure from the function instead!

 

Top of Page

Legal Notice

Ken Howe 2011