IsAlpha also accepts DEL etc. Bug or a feature?
Posted: Fri Apr 25, 2025 10:30 am
Example code:
Manual says "Checks if the character at index pos inside string s$ is an alphabetic letter and returns True if it is, otherwise False."
But when using this example code on Hollywood 10, Windows 11, by pressing DEL, RETURN, BACKSPACE, also give TRUE.
Based upon the explanation, I would expect it to return TRUE only on Alphabetic letters, not on DEL, RETURN...
Bug or a Feature?
Code: Select all
EscapeQuit(True)
InstallEventHandler({onkeydown = Function(event) If IsAlpha(event.key) = True Then DebugPrint(event.key) EndFunction})
Repeat
WaitEvent()
ForeverBut when using this example code on Hollywood 10, Windows 11, by pressing DEL, RETURN, BACKSPACE, also give TRUE.
Based upon the explanation, I would expect it to return TRUE only on Alphabetic letters, not on DEL, RETURN...
Bug or a Feature?