Return an array of num from a function

Hi!

I try to make a function that receive an array of num and then return an array, but i can not get it to work.
Is it possible to return an array from a function??

FUNC num{} ArrayOrganizer(num Array{})

! some boring stuff

RETURN Array{*};
ENDFUNC

Hi,

as i know you can not create a function which returns an array.

But you can create a procedure which returns the modified Array.

Example:

PROC ArrayOrganizer(num Array1{}, INOUT num Array2{})

Array2 :=Array1;

endproc

Routine call: ArrayOrganizer arr1,arr2;

arr1 is the original array and arr2 is the modfied array.

/BR

Micky

Sad to hear that, but no big problem, will have to try something else :slight_smile: