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

Blitz3DBlitzPlusBlitzBasic

RSet

RSet: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 padding it with spaces on the left, or cutting off its start, so the text stays on the right. Useful for numbers in columns.

Examples

Print "[" + RSet$("42", 5) + "]"
Print "[" + RSet$("abcdef", 3) + "]"
[   42]
[def]

Related Commands

LSet, Replace, Right, String

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally