Crystal Reports for Eclipse Designer Guide

ExtractString (orig, startStr, endStr)

Description
This function will return the first occurrence (in the origin string) of a string that starts with the startStr and ends with endStr.
Arguments
  • orig: String
  • startStr: String
  • endStr: String
  • Returns
    String
    Action
    This function will return the first occurrence (in the origin string) of a string that starts with the startStr and ends with endStr. If the endStr is not found, the string starting with startStr until the end of the string is returned.
    Examples
    StringVar strTest := "James and crystal";
    ExtractString (strTest,"J","s");
    Returns "ame".
    StringVar strTest := "James and crystal";
    ExtractString (strTest, "", "s");
    Returns "Jame".



    SAP BusinessObjects
    http://www.sap.com/sapbusinessobjects/
    Support services
    http://service.sap.com/bosap-support/
    Product Documentation on the Web
    http://help.sap.com/