string_letters

Returns a copy of a given string with everything but its letters removed.

Syntax:

GML Code Example

string_letters(str);


Argument Description
str The string to convert to letters.


Returns: String


Description

With this function you can remove all characters that are not classed as letters. This is handy for preventing people from entering unwanted characters into a text entry (like entering "#" to force a new line).

Note: This function only detects the 26 letter english alphabet from A - Z.


Example:

GML Code Example

username = string_letters(username);

The above code will set the "username" variable to only hold the letter characters of the original string.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here