Index
Strings

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"

Index