Can u use a string variable for the data pointer?

BlitzMax Forums/BlitzMax Beginners Area/Can u use a string variable for the data pointer?

Galdy(Posted 2014) [#1]
Can you use a string variable for the data pointer?
Local Mydata:String
RestoreData Mydata


I get a Label 'Mydata' not found error.


Galdy(Posted 2014) [#2]
Guess it has to be the label name itself only. I'll just use select/case to do what i need. Turned out kind of dumb the way I was tying to do it any way. lol.


Mr. Goober(Posted 2014) [#3]
RestoreData works with labels, in which case you would use for when reading data with ReadData. Labels only work elsewhere with Goto (not allowed in Strict Mode).