User Tools

Site Tools


4rpl:commands:substring

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.txt · Last modified: 2021/11/27 07:59 by Karsten75