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.

Just out of curiosity, can you provide an example where this is usefull? You're the second one I see asking for this, and I still can't find a legitimate use.
It's obviously usefull to determine the type of an *object* given that a reference can actually point to an instance of any derived type, but for int, float or string, what use do you plan? A variable cannot ever change from being an integer and then a float, and then a string.

Also, what if I do
Local myString1$ = "1.23"
Local myString2$ = "456"
If intfloatorstring(myString1) Then
...
EndIf

If intfloatorstring(myString2) Then
...
EndIf