SetMaxLength method
Available for Edit and RichEdit objects.
Prototype
SetMaxLength Proto hWnd:HWND, lMaxLength:LONG
Syntax
Invoke SetMaxLength, hWnd, lMaxLength
Function
Sets the MaxLength property for an object..
Parameters
hWnd
Handle to the object.
lMaxLength
A LONG value specifying the maximum number of characters that will be accepted by the object. A value of 0 means unlimited text.
Return value
Eax returns TRUE if succesful, or FALSE if not.