accesing and changing type members

BlitzMax Forums/BlitzMax Beginners Area/accesing and changing type members

Zeptera(Posted 2005) [#1]
hi,

i have previoulsy programmed in blitz basic 3D but i have a question about accesing and editing type members(fields)

How do i do this in blitzMAX?

when i do:

pl.x = pl.x + 1

nothing happens... so is there a mysterious way that i ain't seeing here?


Thanks in advance!

Zep


Beaker(Posted 2005) [#2]
That should work, and works fine for most people.

What exactly does or doesn't happen?


ImaginaryHuman(Posted 2005) [#3]
Like...


Type mything
x:Int=4
End Type

Local pl:mything = New mything
pl.x:+1
Print pl.x 'prints 5?


Zeptera(Posted 2005) [#4]
i was just going to answer you guys, when i ran into a bad problem:

can find interface for module "brl.blitz"


this happened after i updated to 1.06


Perturbatio(Posted 2005) [#5]
You need to rebuild the modules in both release and debug mode.


Zeptera(Posted 2005) [#6]
thanks!