Accessing a type within a type

BlitzMax Forums/BlitzMax Beginners Area/Accessing a type within a type

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.

errmm...

you are trying to write code within the type definition I would guess ( sorry.. dont have access to BMax at the Mo ).



if you replace

my.x = 1

with

method New()
my.x = 1
end method

then my.x should get set to 1 when the moose is created.