Need help with []

BlitzMax Forums/BlitzMax Beginners Area/Need help with []

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.

What I'm having trouble with is taking a:
MyVar[100]


and integrating it with a type like so:
MyVar[100]

MyVar:Basic = New Basic

MyVar[0].x = 1000
MyVar[50].z = 25

Type Basic
     Field x#,y#,z#
End Type


That's what I'm trying to do. I think I'm close but just can't quite get it. I've done this in Blitz3D but it's not the same in BMax obviously. Any help is appreciated.

EDIT
Seems you have to go:
MyVar[0] = New Basic


I hate it when I post and then answer my own question a few mintues later. :(