stringKeyCompareGtr

stringKeyCompareGtr(ord: Integer;
                    k1:  String;
                    k2:  String): Boolean;

The stringKeyCompareGtr method of the Dictionary class returns true if the first string specified in the k1 parameter is greater than the second string specified in the k2 parameter.

Use this method for string comparisons of key values where the comparison takes into consideration the defined locale and case-sensitivity of the key (that is, when the Latin1 locale option is selected in the Sort Order combo box on the Keys sheet of the Define Class dialog when defining the sort order).

The stringKeyCompareGtr method is not affected by whether the key sequence is ascending or descending.

Call this method instead of directly comparing the key with string values (by using the > relational binary operator) when the locale and case-sensitivity values of the key are to be taken into consideration.

When the EnhancedLocaleSupport parameter in the [JadeEnvironment] section of the JADE initialization file is not defined or it is set to false, inconsistent results could be returned to the application server when running in JADE thin client mode. Formatting of locale data is done on the application server, based on the locale of the corresponding presentation client.

The parameters are listed in the following table.

Parameter Description
ord The ordinal value of the key (that is, 1 if it is the first or only key, 2 if it is the second key, and so on)
k1 The value of the key as a string
k2 The string value with which to compare the key value specified in the k1 parameter

The ordinal value specified in the ord parameter determines the locale and case-sensitivity values to be used for the comparison. The string values specified in the k1 and k2 parameters specify the strings to be compared.