Qbasicnews.com

Full Version: command$ doesnt accept Numeric value please help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi
I Tried it works but only accepts as A string value i need value passed to be Integer when i use Cint function it gives me error

there is my code

abc.bas
if command$ > "" then
a% = command$
c% = a% + 1000
print c%
end if

but the same code works if i use a$


when i compile it trows me a error type mismatch
please help.
thanks in advance
if command$ > "" then
a% = val(command$) '<--- VAL does the trick!
c% = a% + 1000
print c%
end if