01-23-2025, 09:25 PM
Simply replace the ReDim a$(0) under the Main label (or whereever the first definition of the array appears, maybe in a .bi file if it's for a library) with a Common Shared a$().
As example take a look into my libraries collection, sub-folder "RS-Includes" in files "memory.bi/.bm", here the used array "gpMemory&&()" is COMMON SHARED in the .bi and the routines in the .bm file use it and REDIM it as required.
As example take a look into my libraries collection, sub-folder "RS-Includes" in files "memory.bi/.bm", here the used array "gpMemory&&()" is COMMON SHARED in the .bi and the routines in the .bm file use it and REDIM it as required.
GuiTools, Blankers & other Projects:
https://qb64phoenix.com/forum/forumdisplay.php?fid=32
Libraries & useful Functions:
https://qb64phoenix.com/forum/forumdisplay.php?fid=23
https://qb64phoenix.com/forum/forumdisplay.php?fid=32
Libraries & useful Functions:
https://qb64phoenix.com/forum/forumdisplay.php?fid=23