Crystal Reports for Eclipse Designer Guide

StrCmp

Description
The StrCmp function compares two strings.
Overloads
  • StrCmp (str1, str2)
  • StrCmp (str1, str2, compare)
  • Arguments
  • str1 is the first text string to be compared.
  • str2 is the second text string to be compared.
  • compare is an optional Number value indicating the kind of string comparison to use:
    • 0 performs a comparison that is case-sensitive
    • 1 performs a comparison that is case-insensitive
    If omitted, a case-sensitive comparison is performed.
  • Returns
    Whole Number where
  • -1 = Less Than
  • 0 = Equal To
  • 1 = Greater Than
  • Action
    The StrCmp function compares two strings.
    Typical Uses
    Use this function to determine if two string values are identical.
    Examples
    StrCmp("abcd", "aa")
    Returns = 1.
    StrCmp("abcd", "aa", 1)
    Returns = 1.
    StrCmp ("abcd", "ac")
    Returns = -1.
    StrCmp ("aa", "aa")
    Returns = 0.



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