Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
command$ doesnt accept Numeric value please help
#1
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
Reply
#2
if command$ > "" then
a% = val(command$) '<--- VAL does the trick!
c% = a% + 1000
print c%
end if
url]http://fbide.sourceforge.net/[/url]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)