qbasicking
Programmer
When righting my scripting language i came to with trouble with the + command.
I had to figure out a way to figure out to add the two like a variable or merge them like a string.
Thats where i came up with this. To see if a string is holding a number in it a$ = "6" try this
IF var$ = STR$(VAL(var$)) THEN
if var$ = "6" then they will be the same
if var$ = "hello" then STR$(VAL(var$)) will equal ".41234 E2" - i dunno - i guessed there
I had to figure out a way to figure out to add the two like a variable or merge them like a string.
Thats where i came up with this. To see if a string is holding a number in it a$ = "6" try this
IF var$ = STR$(VAL(var$)) THEN
if var$ = "6" then they will be the same
if var$ = "hello" then STR$(VAL(var$)) will equal ".41234 E2" - i dunno - i guessed there