Cast String to Int?

Started by Pix, August 17, 2018, 08:14:21 AM

Previous topic - Next topic

Pix

Really quick question. Is there an inbuilt function to cast a string to an integer? I ask as I can't find anything in the documentation and am looking to use the newly added file input/output to read some in game data. I can obviously write my own function if I have to but I would imagine there must be something there already.

Vectrex32

It appears I messed up by not including a way to convert strings to numbers (e.g. a Val() function). When the V32 didn't support user input or file I/O, converting strings to ints wasn't something that would ever be necessary. And when I added file I/O, it just didn't occur to me to add Val().

Sorry. I'll add it to the list of features for the next release.

- Bob