uCalc API Version: 2.1.3-preview.2 Released: 6/17/2026

Warning

uCalc API Preview Release Notice:The documentation describes the intended behavior of the API. The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.

SubString

Method

Product: 

String Library

Class: 

String

Returns substring

Syntax

SubString(int, int)

Parameters

StartPos
int
Starting position
Length
int
(Default = -1)
Length of substring

Return

String

uCalc String object

Remarks

Returns a substring of the current string.

Note: the StartPos and Length parameters are in terms of tokens, not characters.

Examples