$ERROR ALL ON
CLS
CLEAR
DEFINT A-Z
TYPE TSStatsDEF
HalfCap AS LONG
KeyLen AS LONG
ItmLen AS LONG
DupFlag AS LONG
RootNode AS LONG
NextNode AS LONG
LastDel AS LONG
NodeAct AS LONG
KeysAct AS LONG
Filler AS STRING *476
END TYPE
SUB Init
SHARED dbMaxFiles
dbMaxFiles=4
DIM TreeStats(dbMaxFiles) AS SHARED TSStatsDEF
TreeStats(1).KeyLen =10
TreeStats(2).ItmLen =18
END SUB
CALL Init
?TreeStats.ItmLen(1)
Why do I get a syntax error when trying to access one of the array elements?
If I move the DIM outside of the Procedure it works fine.
Help please.
------------------
CLS
CLEAR
DEFINT A-Z
TYPE TSStatsDEF
HalfCap AS LONG
KeyLen AS LONG
ItmLen AS LONG
DupFlag AS LONG
RootNode AS LONG
NextNode AS LONG
LastDel AS LONG
NodeAct AS LONG
KeysAct AS LONG
Filler AS STRING *476
END TYPE
SUB Init
SHARED dbMaxFiles
dbMaxFiles=4
DIM TreeStats(dbMaxFiles) AS SHARED TSStatsDEF
TreeStats(1).KeyLen =10
TreeStats(2).ItmLen =18
END SUB
CALL Init
?TreeStats.ItmLen(1)
Why do I get a syntax error when trying to access one of the array elements?
If I move the DIM outside of the Procedure it works fine.
Help please.
------------------
Comment