CompareTo()

Namespace ›› System ›› MfInteger ›› Methods ››
Parent Previous Next

CompareTo()

Overrides MfObject.CompareTo

OutputVar := instance.CompareTo(obj)

CompareTo(obj)

Compares this instance to a specified MfInteger instance.

Parameters

obj

A MfInteger object to compare to current instance.

Returns

Returns a var containing integer indicating the position of this instance in the sort order in relation to the value parameter. Return Value Description Less than zero This instance precedes obj value. Zero This instance has the same position in the sort order as value. Greater than zero This instance follows

Throws

Throws MfNullReferenceException if called as a static method
Throws MfArgumentException if value is not an instance of MfInteger.

Remarks

Compares this instance to a specified MfInteger instance and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified MfInteger instance.