GetMaxLength method


Available for Edit and RichEdit objects.

Prototype

GetMaxLength Proto hWnd:HWND

Syntax

Invoke GetMaxLength, hWnd

Function

Gets the MaxLength property for an object.

Parameters

hWnd

Handle to the object.

Return value

Eax/Rax returns the current maximum length (in characters) accepted by the object. A value of 0 means unlimited text.