Share via


EcoResTextValue.compareTo Method

Compares this record with the specified value definition.

Syntax

public int compareTo(EcoResValue _value)

Run On

Called

Parameters

  • _value
    Type: EcoResValue Table
    The value definition that contains the string value with which to compare this record.

Return Value

Type: int
-1 if the first character that does not match has a lesser value in this record than the specified record value; 0 if the string values are identical; 1 if the first character that does not match has a larger value in this record than in the specified record value.

Exceptions

Exception Condition
Error

This record and the given record are not comparable as they are not of the same type.

Remarks

The String comparison this method uses is case-sensitive.

See Also

Reference

EcoResTextValue Table