XML Script logo
Function substr
Name

substr

Returns

string

Parameter count

3

Parameter 1

string, a string

Parameter 2

start, a number

Parameter 3

numchars, a number

Description

Returns from 'string', starting at position 'start',a string of 'numchars' characters.
The string is indexed from position 1. Negative values for start correspond to offsets from the end of the string. Negative lengths count backwards from the start.

Examples of use

                                
                        

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited