Mètode SetMaxLength


Disponible per als objectes Edit i RichEdit.

Prototip

SetMaxLength Proto hWnd:HWND, lMaxLength:LONG

Sintaxi

Invoke SetMaxLength, hWnd, lMaxLength

Funció

Escriu la propietat MaxLength d'un objecte.

Paràmetres

hWnd

"Handle" de l'objecte.

lMaxLength

Valor LONG que indica el número màxim de caràcters que acceptarà l'objecte. Un valor de 0 significa text il·limitat.

Valor de retorn

Eax torna TRUE si s'ha pogut escriure la propietat, o FALSE si no.