RE: [libertybasic] How does INKEY.BAS work
>Most examples are missing a proper TRAPCLOSE command and the NOMAINWIN switch.
> I replaced that line with WAIT and everything worked, so thank you
> for that help. I wonder why the code was not updated.
All examples are still working, even those from release 1.x ;-)
> I want now to incorporate a variable called say mode$ which willI would use a variable holding the valid characters.
> have a value of say, "A" for alphabetical only, or "N" for numbers,
> or "N." for numbers and decimal point etc. etc. so INKEY$ can test
> for a limited range of INPUT for a particular instance.
SELECT CASE mode$
ValidChars$ = "abcdef...
ValidChars$ = "123...
ValidChars$ = ".123...
IF LEN(key$) = 1 AND INSTR(ValidChars$, LOWER$(key$)) > 0 THEN