Is it possible to re-dim an array which exists in a type structure?
In my app the array size is unknown at the time and will need to be re-sized accordingly
As an example, I get the error "unknown type: thisarray" when I try to re-dim the array in this code:
In my app the array size is unknown at the time and will need to be re-sized accordingly
As an example, I get the error "unknown type: thisarray" when I try to re-dim the array in this code:
B4X:
' Redim arrays inside type
Sub Process_Globals
End Sub
Sub Globals
Type test(x As Int,y As Int,thisarray() As Float)
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim t1 As test
t1.Initialize
Dim t1.thisarray(100) As Float ' <--- ERROR HERE
t1.thisarray(0)=123.456
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub