Control_LimitText

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Commands >

Control_LimitText

 

Description

 

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

You can send this message to either an edit control or a rich edit control.

 

Syntax

 

Control_LimitText(hwnd, ctrlID, TextLimit)

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier

TextLimit

Number

No

The maximum number of chars the user can enter.

 

Remarks

 

The default limit for the amount of text a user can enter in an edit control is 32,767 characters

 

Restrictions

 

See also

 

Examples