Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

StringCompare()

  • Last UpdatedJul 22, 2024
  • 1 minute read

Compares a string value with another string.

Category

String

Syntax

StringCompare( Text1, Text2 );

Parameters

Text1

First string in the comparison.

Text2

Second string in the comparison.

Return value

The return value is zero if the strings are identical, -1 if Text1’s value is less than Text2, or 1 if Text1’s value is greater than Text2.

Example

Result = StringCompare ("Text1","Text2"); (or)

Result = StringCompare (MText1,MText2);

Where Result is an Integer or Real tag and MText1 and MText2 are Memory Message tags.

See also

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

StringFromTimeLocal()

StringInString()

StringLeft()

StringLen()

StringLower()

StringMid()

StringReplace()

StringRight()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in