Skip to content

dos_strdelete

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

Deletes characters from a string.

Syntax

(dos_strdelete string index count)

Parameters

string

A string.

index

The zero-based index of the first character to delete.

count

The number of characters to be removed. If index is longer than the length of string, the remainder of string will be removed.

Returns

The modified string if successful.

nil on error.

Example

Command: (setq str "Hockey is the best.")
"Hockey is the best."

Command: (dos_strdelete str 6 8)
"Hockeybest."

Clone this wiki locally