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

Blitz3DBlitzPlusBlitzBasic

Left

Left:String string:String, count:Int32
Parameter Mode Type Default Description
string In String required The text.
count In Int32 required How many characters to take.

Returns: The first count characters.

Description

Returns the first characters of a string. Asking for more characters than there are returns the whole string.

Examples

Print Left$("hello", 2)
Print Left$("hello", 10)
he
hello

Related Commands

Hex, Instr, Len, Lower

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally