# DM_GETTEXTLENGTH

The DM_GETTEXTLENGTH message is sent to the dialog manager to retrieve the size of data from FarDialogItem.Data or value of FarDialogItem.Ptr.PtrLength field.

### Param1

The ID of the dialog item for which you want to retrieve the text size.

### Param2

0

### Return

Length of the specified dialog item string NOT including the terminating character '\0'.

### Controls

Control | Description
--- | ---
All | All dialog items.

### Remarks

The DM_GETTEXTLENGTH message in FAR version up to 1.70 beta 3 returned the string length INCLUDING the terminating character.

### Example

See also:
DialogEx