Skip to content

SetTextAreaText

Claude edited this page Oct 26, 2026 · 7 revisions

SetTextAreaText

Command Index · BlitzPlus · Text Areas

SetTextAreaText textarea%, text$, pos%=0, len%=-1, units%=1

Works in: BlitzPlus

Writes text into a text area at a place. It replaces the given number of characters or lines there, so a length of 0 only inserts.

Graphics 320, 240, 32, 2
win  = CreateWindow("Insert", 10, 10, 300, 150, Desktop(), 3)
area = CreateTextArea(10, 10, 270, 90, win)
SetGadgetText area, "Hello world"
SetTextAreaText area, "big ", 6, 0
SetTextAreaText area, "HELLO", 0, 5
Repeat
Until WaitEvent() = $803
Parameter Type Default Description
textarea Int required Handle of a text area.
text String required The text to write.
pos Int 0
len Int -1
units Int 1 1 counts characters, 2 counts lines. Defaults to 1.

Related commands

Command Index · BlitzPlus · Text Areas

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally