SubString

Method

Returns substring

Product: 

Class: 

Warning

uCalc API Preview Release Notice:The uCalc engine has successfully transitioned to modern cross-platform environments.The next phase envolves some structural changes, performance optimizations, and API refinements.The API is subject to breaking changes prior to the stable release. Please evaluate the preview version thoroughly before production use.

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

This page last modified on: 

8/21/2026