In the User's Manual and Reference Guide it does not mention that one cannot dimension an array using an equate,e.g.,
%ArraySize = 1000
DIM G(MAX,2) AS INTEGER
DIM G(3,ArraySize)
Is the above a syntax error or an idiosyncrasy of powerbasic?
Also, neither manual mentions the limitations for using PUBLIC in PBUs. In quickbasic, one can encapsulate modules by using named common. Each module can have its own named common and also reference named common in other modules. For example:
MAIN
DEFINT A - Z
COMMON /A.s/A1, A2, A3, A4
COMMON /B.s/B1, B2, B3
COMMON /C.s/C1, C2, C3
END
MODULE 1
DEFINT A - Z
COMMON SHARED /A.s/ A1, A2, A3, A4
COMMON SHARED /D.s/ D1, D2, D3, D4
END
MODULE 2
COMMON SHARED /B.s/ B1, B2, B3
COMMON SHARED /D.s/ D1, D2, D3, D4
COMMON SHARED /E.s/ E1, E2, E3, E4
Can the same type of thing be done using PUBLIC in the PBUs?
%ArraySize = 1000
DIM G(MAX,2) AS INTEGER
DIM G(3,ArraySize)
Is the above a syntax error or an idiosyncrasy of powerbasic?
Also, neither manual mentions the limitations for using PUBLIC in PBUs. In quickbasic, one can encapsulate modules by using named common. Each module can have its own named common and also reference named common in other modules. For example:
MAIN
DEFINT A - Z
COMMON /A.s/A1, A2, A3, A4
COMMON /B.s/B1, B2, B3
COMMON /C.s/C1, C2, C3
END
MODULE 1
DEFINT A - Z
COMMON SHARED /A.s/ A1, A2, A3, A4
COMMON SHARED /D.s/ D1, D2, D3, D4
END
MODULE 2
COMMON SHARED /B.s/ B1, B2, B3
COMMON SHARED /D.s/ D1, D2, D3, D4
COMMON SHARED /E.s/ E1, E2, E3, E4
Can the same type of thing be done using PUBLIC in the PBUs?
Comment