I tried looking for someone else having a similar problem, but I didn't find anything. Eitherway the code below crashes when run (compiled in PBCC 4.04), any Ideas? Does it happen to anyone else?
P.S. This is just simplified code but still generates error, my original code is a choice program for use with batch files where it displays a list and you can input a number to make a selection, however if no number is entered or if non-numeric text is entered it crashes. However, if you have non-numeric characters mixed with numbers it wont crash. As far as I know if RETAIN$() does not find anything its supposed to return an empty string, but instead it crashes for me.
Code:
#COMPILE EXE #DIM ALL FUNCTION PBMAIN () AS LONG DIM myInput AS STRING myInput = RETAIN$("asd", ANY "0123456789") PRINT myInput SLEEP 1000 END FUNCTION
Comment