Types confuse me in MAX

BlitzMax Forums/BlitzMax Beginners Area/Types confuse me in MAX

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.

Alright, well here is why update returns an error.

The object 'r' in your "r.Update()" isn't defined anywhere. Sure you have r:radio in the function create which is assosiated with the type radio (mind you, since you haven't defined R as global to the program, this is merely local to the function create of the type radio), however 'r' from 'r.update()' hasn't been defined as a radio object (globally).

AT the top of your code (Very top), put in this
"Global R:Radio"

See if that helps.