APPX Software Library

Chapter 4-8: Runtime Subroutine's and Predefined Processes

.TEXT UNICODE COMP

This subroutine compares 2 Unicode fields.

Usage:

Screen capture

Description:

This subroutine will do a case insenstive comparison of two Unicode fields and return a result. All parameters are required. If any required parameters are missing, the subroutine will CANCEL.

<result> is a numeric value returned. If a positive number, then <first_string> is greater than <second_string>, if negative then <second_string> is greater than <first_string> and if zero the strings are equal. The comparison is done using Unicode collating sequences. The larger (or smaller) the number, the greater the 'difference'. For example, comparing 'AAA' to 'BBB' results in -1, while comparing 'AAA' to 'zzz' results in -25.

<first_string> is the first string to compare (Required).

<second_string> is the second string to compare (Required).