# Hard code maxChars \[MX\]

**URL:** <https://forum.kirupa.com/t/hard-code-maxchars-mx/12523>\
**Category:** Uncategorized\
**Created:** [February 1, 2003, 3:54am UTC](https://forum.kirupa.com/t/hard-code-maxchars-mx/12523 "2003-02-01T03:54:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)\
**Post date:** [February 1, 2003, 3:54am UTC](https://forum.kirupa.com/t/hard-code-maxchars-mx/12523/1 "2003-02-01T03:54:57Z")

</div>

Small question, how do you set the max Characters of a textbox  
with AS. I have tried this with know luck

firstName.maxChars=15;

Bill

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 1, 2003, 4:14am UTC](https://forum.kirupa.com/t/hard-code-maxchars-mx/12523/2 "2003-02-01T04:14:09Z")

</div>

maxChars set like that with AS only effects user input. No user can input more than that many characters, however AS itself can alter the text to be more than what maxChars is set at.
