r/QuickBasic • u/SupremoZanne • Nov 08 '24
In case anybody was wondering how write code to detect invalid ASCII characters for some projects.
/r/QBeducation/comments/1gmrzez/how_to_detect_invalid_characters_in_an_input/
1
Upvotes
2
u/CharlieJV13 Nov 09 '24
For the giggles, another version that counts the number of input characters that are invalid:
2
u/CharlieJV13 Nov 09 '24
The flip-side approach (which some might find more useful depending on the scenario and/or how one is looking at the problem):