<< Click to Display Table of Contents >> Navigation: NxLib API > C# Interface / CLI > NxLibItem > Compare |
Compare the item's value to a constant. The compare function is available for types int, double, bool and String.
Variants throwing exceptions on API errors:
int Compare(int value)
int Compare(double value)
int Compare(bool value)
int Compare(String value)
Variants returning API errors as int parameter:
int Compare(Out int returnCode, int value)
int Compare(Out int returnCode, double value)
int Compare(Out int returnCode, bool value)
int Compare(Out int returnCode, String^ value)
returnCode |
The error code returned when accessing the item |
value |
The value to compare the item's value with |
-1 |
This item's value is smaller that the constant it was compared with. |
0 |
The values are equal. |
1 |
This item's value is larger than the constant it was compared with. |