How to add your knowledge

subString()

    Table of contents
    1. 1. Synopsis
    2. 2. Syntax
    3. 3. Example 1
    4. 4. Example 2
    5. 5. Example 3

    Synopsis

    Returns a new string containing a subset of the elements from the original string. The subset is specified using the arguments iLow and iHigh, which are inclusive indices. The indices are clamped to the respective ends of the string, if out of range. If iLow is greater than iHigh, returns the empty string. Note that the indices are 1-based.

    Syntax

    subString ( str As String, 
                iLow As String, 
                iHigh As String ) As String 
    Argument Type Description
    str String original string
    iLow Integer starting index
    iHigh Integer ending index

    Example 1

    Intent >subString("To be or not to be", 1, 5) 
    --> "To be" 

    Example 2

    Intent >subString("To be or not to be", 10, 1000) 
    --> "not to be" 

    Example 3

    Intent >subString("To be or not to be", 1000, 1) 
    --> ""