Skip to content

dos_strleft

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Extracts the left part of a string (like the Basic LEFT$ function).

Syntax

(dos_strleft string count)

Parameters

string

A string.

count

The number of characters to extract from string. If count exceeds the length of string, then the entire string is extracted.

Returns

A string that contains a copy of the specified range of characters if successful.

nil on error.

Example

Command: (dos_strleft "AutoCAD 2006" 7)
"AutoCAD"

Clone this wiki locally