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

Blitz3DBlitzPlusBlitzBasic

LSet

LSet:String string:String, size:Int32
Parameter Mode Type Default Description
string In String required The text.
size In Int32 required The length of the result.

Returns: A string of exactly size characters.

Description

Makes a string exactly size characters long by cutting it off or padding it with spaces on the right, so the text stays on the left. Useful for columns.

Examples

Print "[" + LSet$("ab", 5) + "]"
Print "[" + LSet$("abcdef", 3) + "]"
[ab   ]
[abc]

Related Commands

Len, Lower, Mid, RSet

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally