subString

Syntax: subString(string inputString, integer beginIndex, integer endIndex)

Arguments:

  • inputString is the name of the string from which to extract the characters.
  • beginIndex is the integer that represents the starting position for the extraction.
  • endIndex is the integer that represents the ending position for the extraction. If the string does not contain any data at runtime, this function returns empty spaces.

If the beginning position is less than 1 at runtime, it is changed to a 1, and if the ending position is greater than the length of the string, then the value is replaced with the maximum length of the specified string.

Return Type: string

Description: This function returns a set of characters specified by the (1‐based) first and last index to a given string.

Example:

inputString is a string initially "Sales Department".
beginIndex is an integer initially 2.
endIndex is an integer initially 5. 
value is a string.
value = subString(inputString, beginIndex, endIndex).

The returned value string is "ales".

  • www.fico.com