settextlength

verb
UK /sɛt tɛkst lɛŋθ/
US /sɛt tɛkst lɛŋθ/

To set how long a piece of text can be.

The programmer used settextlength to make the name box hold only ten letters.


OTHER MEANINGS

2. To choose the number of characters allowed in a text box.

She called settextlength before showing the form to users.

3. To change the length setting of a text value in code.

The function settextlength trims the message to fit the screen.

4. To fix the size of a text area on a page.

They used settextlength so the comment box would not grow too big.