by "Tom Lake" <tom_lake@[EMAIL PROTECTED]
>
May 4, 2006 at 01:21 PM
> Hello,
>
> sorry for such newbie question.
>
> I need to return a array as return value out of a function in PowerBasic
> v8.01
If you use Dim Shared, you can get the values from the array after the
FUNCTION ends. You can return 0 if the function worked or an error
code if it didn't work.
>
> FUNCTION Test() AS LONG
> DIM Shared array(1 to 20)
>
> array(0) = "Value1"
> array(1) = "Value2"
> array(2) = "Value3"
>
> REM Some other Job
>
> FUNCTION = 0
> END FUNCTION
>
> This will not work.
> Has anyone some help for me ?
>
> Greetings
> Alen Hopek