Telling what type something is

BlitzMax Forums/BlitzMax Beginners Area/Telling what type something is

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you can store data as an int or float, why store it as a string? And you can always convert it to a string afterwards. My usage would be purely to use the GNet Commands. GetGNetInt, GetGNetFloat, GetGNetString, SetGNetInt, SetGNetFloat, and SetGNetString. If you are passed an object and you don't know what to store it as over the network, it would be useful to know what type it is supposed to be, or convert a string to whatever is the most efficient data type. Although my solution isn't exactly efficient its just the start to what hopefully could be an answer to telling what type something is.