i have a structure
dim type(s1,s2)var(0) as double
can i redeclare this structure (change size of dimension)?
for example dim type(s1,s2)var(5) as double
when i'm try it i have error 'Syntax error'
The solution is to remember that structure arrays are really two-dimension arrays (as the help says). The structure elements are the second dimension, so you can redeclare as a 2-D array. To ensure that I get the size of the second dimension correct (even though I might want to add to the Type) I write:
B4X:
Dim trksegLimits(newSize, ArrayLen(trksegLimits(), 2)) As Number