Hi I am new to b4a, comming from C. I found this example of a type definition:
http://www.b4x.com/android/forum/threads/multi-dimension-arrays-arraylist-or-list.17528/
I took that and added an array of ints with the type definition:
Type pumptype(times(28) As Int, duration As Int, active As Boolean)
Dim pumpdata(4) As pumptype
then I refer to a specific time with the following
pumpdata(0).times(1)=something
It compiles, runs then crashes out with a "javalang NULL pointer"
Am I overstepping the type functionality in some way?
Thanks,
Quentin
http://www.b4x.com/android/forum/threads/multi-dimension-arrays-arraylist-or-list.17528/
I took that and added an array of ints with the type definition:
Type pumptype(times(28) As Int, duration As Int, active As Boolean)
Dim pumpdata(4) As pumptype
then I refer to a specific time with the following
pumpdata(0).times(1)=something
It compiles, runs then crashes out with a "javalang NULL pointer"
Am I overstepping the type functionality in some way?
Thanks,
Quentin