Please enable JavaScript to view this site.

Returns a sub string from the text. The sub string starts at the specified character position and is optionally limited to the specified length.

 

int SubStr(string text; int startIndex; [int length])

 

text

The string to retrieve the sub string from.

startIndex

The zero-based starting character position for the sub string.

length

Optional limitation in length of the sub string.

Example

SubStr("Ice is cold";4;2)

Returns "is".

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC