User Tools

Site Tools


ixe:irpl:strings:substring

Substring

Substring (<-aString <-startAt <-length) ->aPiece

Description

Extracts a portion of a string into a new item on the stack.

The command has 3 arguments. First the string to be examined, second the starting position of the substring within the original string, starting from offset 0 (zero) and thirdly the length of the extracted string.

Examples

Trace( Substring("Particle" 1 3)) # Prints "art"
ixe/irpl/strings/substring.txt · Last modified: 2025/01/10 20:19 by Karsten75