TAdvEdit - MaxLength vs. LengthLimit


my question is short...
What is the difference between the MaxLength and LengthLimit properties of TAdvEdit?

I didn't find anything in the "PDF manual"...


Both do the same, but we added LengthLimit long before Borland added MaxLength by default to TEdit, so we keep it for backwards compatibility.


Doesn't MaxLength take into account any Prefix or Suffix? If you have a prefix of, say, 'Pfx', and set MaxLength to 10, you can only type 7 characters, however if you set LengthLimit to 10 you can type 10 characters. I always use LengthLimit, and keep MaxLength=0.

You're correct that LengthLimit does not take the length of Prefix & Suffix in account.