I've written a library routine that returns an array that is declared within it, and the array is not declared within the calling routine. However, the library routine is called multiple times and the array is possibly different each time. A very simplified version follows:
Code: Select all
FOR I% = 1 TO 2
PROC_MAINPROC
NEXT
END
DEF PROC_MAINPROC
REM ...
PROC_lib_routine_A(R%())
REM ...
ENDPROC
DEF PROC_lib_routine_A(RETURN r%())
N% = FN_lib_routine_B
DIM r%(N%)
REM ...
ENDPROC
DEF FN_lib_routine_B
= RND(9)
I have scanned the Help, Wiki and the forums, and I can't find anything that helps.
Matt