I'm trying to read console input (to search for text). I found that PBCC 5.0 will not read a comma "," and says the length of the INPUT string is 0. If I enclose the comma with quotes on the input line then it reads just fine. The following code demonstrates the problem.
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG
DIM t$
PRINT "Inputting a comma returns an empty string."
PRINT
INPUT "input: "; t$
PRINT "output: "; t$
PRINT "Length = ";LEN(t$)
WAITKEY$
END FUNCTION
Is that a feature or a bug? I'd like to read those commas directly without having to explicity include the quotes.
Thanks!
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG
DIM t$
PRINT "Inputting a comma returns an empty string."
INPUT "input: "; t$
PRINT "output: "; t$
PRINT "Length = ";LEN(t$)
WAITKEY$
END FUNCTION
Is that a feature or a bug? I'd like to read those commas directly without having to explicity include the quotes.
Thanks!
Comment