J jo1234 Active Member Licensed User Longtime User Oct 9, 2019 #1 Hi, I'm stuck with a silly problem and would appreciate some help I have a variable that is defined in starter.Process_Globals B4X: Sub Process_Globals Public boArray() As Boolean I want to set the dimensions of this variable in a sub. B4X: Dim Starter.boArray(10) As Boolean However, this code gives me the error B4X: Unknown type: boarray. Are you missing a library reference? How can I redim a process_global in a sub? Thanks a lot Johannes
Hi, I'm stuck with a silly problem and would appreciate some help I have a variable that is defined in starter.Process_Globals B4X: Sub Process_Globals Public boArray() As Boolean I want to set the dimensions of this variable in a sub. B4X: Dim Starter.boArray(10) As Boolean However, this code gives me the error B4X: Unknown type: boarray. Are you missing a library reference? How can I redim a process_global in a sub? Thanks a lot Johannes
agraham Expert Licensed User Longtime User Oct 9, 2019 #2 Hmm! I see this and don't know if it is a bug or a deliberate design feature. You only seem to be able to re-Dim an array in the module where it is declared. This seems to work however B4X: Dim temp(10) As Boolean Starter.boArray = temp Upvote 0
Hmm! I see this and don't know if it is a bug or a deliberate design feature. You only seem to be able to re-Dim an array in the module where it is declared. This seems to work however B4X: Dim temp(10) As Boolean Starter.boArray = temp