[Gambas-user] arrays

Shane buster6seven at gmail.com
Sun Apr 21 04:39:37 CEST 2019


I have coded this

At the beginning of the main module i declare

public s[100] as point {point is a class with x as integer and y as 
integer and thats all}

so I go to use the array

s2.SetPosition(s[i].x * size, s[i].y * size)

but i get an error null object

the array side works i get 100 arrays of NULL

now do i make the elements accessible?

I was expecting to have 100 elements of x=0 and y=0

can someone enlighten me please thanks

Shane







More information about the User mailing list