Click here to return to the KiXtart HelpDesk main page...

KiXtart Command Reference

SUBSTR

action

returns part of a string.

syntax

SUBSTR ("string", start, length)

parameters

String

The string from which to extract a substring.

Start

Numeric value representing the offset in the string where the substring begins.

Length

Numeric value representing the length of the substring.

returns

The substring indicated by start and length.

example

$x = SUBSTR(@USERID, LEN(@USERID) - 2, 2)   ; get the last 2 chars of the userid