Skip to content
Narta Xaymar Dirks edited this page Oct 28, 2026 · 6 revisions

Blitz3DBlitzPlusBlitzBasic

Trim

Trim:String string:String
Parameter Mode Type Default Description
string In String required The text.

Returns: The text without the blanks at its ends.

Description

Removes spaces, tabs and other invisible characters from both ends of a string.

Examples

Print "[" + Trim$("   hi there  ") + "]"
[hi there]

Related Commands

RSet, String, Upper

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally