User Tools

Site Tools


4rpl:commands:substring

This is an old revision of the document!


Index

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 extrated string.

Examples

Trace( Substring("Particle" 1 3)) # Prints "art"

Index

4rpl/commands/substring.1621567011.txt.gz · Last modified: 2025/02/14 14:56 (external edit)