Hi all!
I'm unsig a hex-based map system and all the hexes have identifiers like "0101", "0102", etc.
So I display and save the identifiers as strings, because I want the leading zero included.
My question is, how can I add a number to a string?
So for example, what I would like to happen is: "0101" + 1 = "0102". This obviously won't work, the result being a concat like "01011".
So how can I add a number to a string?
greetz,
Andrik
I'm unsig a hex-based map system and all the hexes have identifiers like "0101", "0102", etc.
So I display and save the identifiers as strings, because I want the leading zero included.
My question is, how can I add a number to a string?
So for example, what I would like to happen is: "0101" + 1 = "0102". This obviously won't work, the result being a concat like "01011".
So how can I add a number to a string?
greetz,
Andrik