LOCAL laArr[1] laArr[1] = myFunction() FUNCTION myFunction LOCAL laArr[1] laArr[1] = 'Hello' laArr[2] = 'Goodbye' RETURN laArr[2]If, OTOH, you want to return an _array_ (not just an element), the pass the array to the function, like so:
LOCAL laArr[1] myFunction(@laArr) FUNCTION myFunction LPARAMETER taArr DIMENSION taArr[2] taArr[1] = 'Hello' taArr[2] = 'Goodbye' RETURN