H HARRY Active Member Licensed User Longtime User Feb 20, 2008 #1 Hi, In Sub Globals I declared: Dim Type (a,b,c,d) S (0) As Int32 When the program is running, I find out the number of structures I need. How can I redimension this array? Harry
Hi, In Sub Globals I declared: Dim Type (a,b,c,d) S (0) As Int32 When the program is running, I find out the number of structures I need. How can I redimension this array? Harry
Erel B4X founder Staff member Licensed User Longtime User Feb 20, 2008 #2 You should use: B4X: Dim S(x,4) 'x - number of structures. 4 -number of fields
agraham Expert Licensed User Longtime User Feb 20, 2008 #3 If for some reason you really want the array to be of type Int32 then you will need Dim (x,4) As Int32 otherwise you will get a normal (string) array.
If for some reason you really want the array to be of type Int32 then you will need Dim (x,4) As Int32 otherwise you will get a normal (string) array.
H HARRY Active Member Licensed User Longtime User Feb 20, 2008 #4 Thanks both of you for the prompt Help Harry