Alen Hopek
2006-05-04 16:52:57 UTC
Hello,
sorry for such newbie question.
I need to return a array as return value out of a function in PowerBasic
v8.01
Something like this:
FUNCTION Test() AS LONG
DIM array(1 to 20)
array(0) = "Value1"
array(1) = "Value2"
array(2) = "Value3"
REM Some other Job
FUNCTION = array
END FUNCTION
This will not work.
Has anyone some help for me ?
Greetings
Alen Hopek
sorry for such newbie question.
I need to return a array as return value out of a function in PowerBasic
v8.01
Something like this:
FUNCTION Test() AS LONG
DIM array(1 to 20)
array(0) = "Value1"
array(1) = "Value2"
array(2) = "Value3"
REM Some other Job
FUNCTION = array
END FUNCTION
This will not work.
Has anyone some help for me ?
Greetings
Alen Hopek