Calling a variable by its name

BlitzMax Forums/BlitzMax Programming/Calling a variable by its name

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

Is something like the follow possible in some sort of way

Const Level_001:Int = 500

Local WantedVariable:String = "Level_001"

Local OutputVariable:Int = VariableValue(WantedVariable)

to which OutPutVariable would become 500, hopefully that makes enough sense.

ta!