Skip to content

TextAreaText

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

TextAreaText

TextAreaText:String textarea:Int32, pos:Int32=0, len:Int32=-1, units:Int32=1
Parameter Mode Type Default Description
textarea In Int32 required Handle of a text area.
pos In Int32 0
len In Int32 -1
units In Int32 1 1 counts characters, 2 counts lines. Defaults to 1.

Returns: The text.

Description

Reads the text, all of it or a part. Line breaks are given as Chr$(13).

Examples

Graphics 320, 240, 32, 2
win  = CreateWindow("Read", 10, 10, 300, 150, Desktop(), 3)
area = CreateTextArea(10, 10, 270, 90, win)
SetGadgetText area, "one" + Chr$(13) + "two" + Chr$(13) + "three"
SetGadgetText win, TextAreaText(area, 1, 1, 2) ; the second line
Repeat
Until WaitEvent() = $803

Related Commands

AddTextAreaText, FormatTextAreaText, SetTextAreaText, TextAreaChar, TextAreaCursor, TextAreaLen, TextAreaLine, TextAreaLineLen

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally