Redefining variable types

BlitzMax Forums/BlitzMax Programming/Redefining variable types

Possible?

In one of my projects, the way a structure is saved may change in updated versions, so I may require that a file be loaded differently depending on the format.

What i'm looking to do, is something like this:


Type tone
	Field name:Int
End Type

Type ttwo
	Field name:Int
	Field count:Int
End Type

Type tthree
	Field name:Int
	Field info:String
End Type


If Format = format_One
	Global hah:tone 
ElseIf Format = format_Two
	Global hah:ttwo
Else
	Global hah:tthree
End If


There's obviously many problems with that example, but I figured it was the best to explain what i'm trying to do. Is there any way to redefine a variable during runtime?

Thanks