Compares the row1 with row2 and returns an integer that indicates whether the row1 precedes, follows, or occurs in the same position in the sort order as the row2.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
int Compare(
Row row1,
Row row2,
string fieldId,
Object value1,
Object value2,
int defaultResult
) |
Visual Basic |
---|
Function Compare (
row1 As Row,
row2 As Row,
fieldId As String,
value1 As Object,
value2 As Object,
defaultResult As Integer
) As Integer |
Visual C++ |
---|
int Compare(
Row^ row1,
Row^ row2,
String^ fieldId,
Object^ value1,
Object^ value2,
int defaultResult
) |
F# |
---|
abstract Compare :
row1 : Row *
row2 : Row *
fieldId : string *
value1 : Object *
value2 : Object *
defaultResult : int -> int
|
Parameters
- row1
- Type: Dapfor.Net.Ui..::..Row
The row1.
- row2
- Type: Dapfor.Net.Ui..::..Row
The row2.
- fieldId
- Type: System..::..String
The field identifier.
- value1
- Type: System..::..Object
The value1.
- value2
- Type: System..::..Object
The value2.
- defaultResult
- Type: System..::..Int32
The default result.
Return Value
Type:
Int32A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero row1 instance is less than row2. Zero row1 instance is equal to row2. Greater than zero row1 instance is greater than row2.
See Also