Well I am adding it to a variable for a textbox. However, even if I do
test_string += keyboard_lastchar. Is this a number or a string.
I just want to know if the last key was a number a letter or other basically.
Edit: I have quite a comprehensive text box that is all but done. I am now writing a script to deal with formatting. For example time, date, US and UK date, currency, weights, etc
This will have a list of acceptable inputs. So UK date would be Number, number, forward slash, number, number, forward slash, number, number, number, number, number.
Before each character is committed to the textbox it will be checked to see if it meets these conditions. Hence I just want to grab the last key and check if it is compliant.
This was I can easily add a new format type, wack him in the constants list, and bingo bongo.
I can check all the numbers and letters manually which is bad. The other way I could do it would be to check the UTF range but I want to do it the original way I suggested as its cleaner. Also I have had a number of issues with data types in GMS (Checking for boolean is one) and want to figure this out.