Array

BlitzMax Forums/BlitzMax Beginners Area/Array

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I like to make an array of a user type. This is very common in c c++, For example:
type x
field f1:int
field f2:float
end type

then suppose this is correct:

Local MyArray:x[]
MyArray = New x[100]
MyArray[0].f1 = 1204
MyArray[0].f2= 25.45

I tried something like that but it didn't work. Any idea to do such a thing?

Also, is any Array library available? I don't want to make one if there is one for BlitzMax.

Also, Blitz's site forum search doesn't work, any comment?