Get a Random Type

BlitzMax Forums/BlitzMax Beginners Area/Get a Random 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.

This line:
Print Get_Random_Name:TNames()

shoud be:
Print Get_Random_Name().Name


and to do this:
i = Get_Random_Name
Print i.name$

You should:
Global i:TNames    'This can be changed to Local i:Tnames or whatever needed
I = Get_Random_Name()
Print I.Name


I highly recomend you to use SuperStrict always in your code, this will help you with this kind of issues