Help Center

CEdit.SetLimitTextmethod

Sets the text limit of an edit control.

WindowsmethodCEdit.incdocumented

Syntax

SUB SetLimitText (BYVAL hEdit AS HWND, BYVAL chMax AS DWORD)
Also documented as LimitText — one description covers them all.

Parameters

NameDescription
hEditThe handle of the edit control.
chMaxThe maximum number of characters the user can enter. This number does not include the terminating null character.

Description

Sets the text limit of an edit control. The text limit is the maximum amount of text, in characters, that the user can type into the edit control.

Example

CEdit.LimitText(hEdit, 50) CEdit.SetLimitText(hEdit, 50)

Reference

  • Include file CEdit.inc
  • Defined in AfxNova/CEdit.inc:594
  • Documented in Windows/WIndows Controls/CEdit Class.md
  • Topic: CEdit Class