uCalc API Version: 5.7.0-preview.1 Released: 7/30/2026

Warning

uCalc API Preview Release Notice:This preview documentation describes the intended behavior of the API. It is not fully accurate or complete.The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.Use of the preview version in your production code is not recommended.

SubString

Method

Product: 

Class: 

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