User Tools

Site Tools


4rpl:commands:substring

This is an old revision of the document!


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

4rpl/commands/substring.1638017833.txt.gz · Last modified: 2021/11/27 07:57 by Karsten75