Hello everyone
I've just started with PB 3.5, moving from Microsoft's Basic 7.1
I have a large program, with multiple modules (units).
Is it possible to share user defined variables between units and the main program?
I mean something like:
in Main:
TYPE TipVar
Int1 AS INTEGER
Arr(12) AS LONG
END TYPE
DIM RegVar AS TipVar
PUBLIC RegVar
...
in unit:
EXTERNAL RegVar
?RegVar.Arr(2)
...
Thanks
------------------
I've just started with PB 3.5, moving from Microsoft's Basic 7.1
I have a large program, with multiple modules (units).
Is it possible to share user defined variables between units and the main program?
I mean something like:
in Main:
TYPE TipVar
Int1 AS INTEGER
Arr(12) AS LONG
END TYPE
DIM RegVar AS TipVar
PUBLIC RegVar
...
in unit:
EXTERNAL RegVar
?RegVar.Arr(2)
...
Thanks
------------------
Comment