EcoResDateTimeValue.compareTo Method
Compares this record against the specified record value.
Syntax
public int compareTo(EcoResValue _value)
Run On
Called
Parameters
- _value
Type: EcoResValue Table
The value definition that contains the date and time value to which to compare this record.
Return Value
Type: int
-1 if the DateTime value in this record is anterior to the value in the given record; 0 if the DateTime values are identical; 1 if the DateTime value in this record is posterior than the value in the specified record.
Exceptions
Exception | Condition |
---|---|
Error | This record and the given record are not comparable as they are not of the same type. |