Hello guys , a textarea , you can determine how many characters can contain ?
Example : I would like in a textarea the user could only enter 20 characters , is it possible?
Develop games in your browser. Powerful, performant & highly capable.
CAN anyone help ?
Try this, it works for me: https://www.scirra.com/tutorials/711/ho ... box-object <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">
Check the length of the text in the text box, and truncate it if over 20. Example:
Compare two values: len(TextBox.Text) > 20 TextBox Set text to left(TextBox.Text, 20)[/code:29l9bkyk] [i]left(s, x)[/i] returns a string containing [i]x[/i] characters starting from the left side of the string [i]s[/i]. EDIT: Ah, got beaten to it, but there it is.