Skip to content

TextAreaSelLen

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

TextAreaSelLen

TextAreaSelLen:Int32 textarea:Int32, units:Int32=1
Parameter Mode Type Default Description
textarea In Int32 required Handle of a text area.
units In Int32 1 1 counts characters, 2 counts lines. Defaults to 1.

Returns: The size of the selection.

Description

Gives how much is selected.

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Selection", 10, 10, 300, 150, Desktop(), 3)
area = CreateTextArea(10, 10, 270, 90, win)
ActivateGadget area
Repeat
	e = WaitEvent()
	If e = $401 Then SetGadgetText win, "Selected " + TextAreaSelLen(area)
Until e = $803

Media

TextAreaSelLen

Related Commands

AddTextAreaText, TextAreaChar, TextAreaCursor, TextAreaLen, TextAreaLine, TextAreaLineLen, TextAreaText, TextFieldText

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally