I have a declared type i.e:
I populate a list of these and the try a for each:
However this does not find the vehicle with registration XXX...?
Instead I seem to have to force V into existence by using
before the If statement and then it is found OK.
NB this behaviour only happens in release mode, in debug it finds XXX just fine!
B4X:
Type Vehicle (RegistrationNumber As String, Model As String)
I populate a list of these and the try a for each:
B4X:
For Each V as Vehicle In VehicleList
if V.RegistrationNumber = "XXX" then
....
End If
Next
However this does not find the vehicle with registration XXX...?
Instead I seem to have to force V into existence by using
B4X:
Dim X as string = V.RegistrationNumber
NB this behaviour only happens in release mode, in debug it finds XXX just fine!