' If the collection isn't nothing.
If Not IsNothing(pOrderCol) Then
' For each attribute in collection, add a order attribute in retrieve criteria.
For inIndex = 1 To pOrderCol.Count
boAscend = True
If Not IsNothing(pOrderAscCol) Then
If Not pOrderAscCol.Item(pOrderCol.Item(inIndex)) Is Nothing Then
boAscend = pOrderAscCol.Item(pOrderCol.Item(inIndex))
End If
End If
obRC.addOrderAttributeByAscend(pOrderCol(inIndex), boAscend)
Next
End If
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The default ordering is ascend in this code:
' If the collection isn't nothing.
If Not IsNothing(pOrderCol) Then
' For each attribute in collection, add a order attribute in retrieve criteria.
For inIndex = 1 To pOrderCol.Count
boAscend = True
If Not IsNothing(pOrderAscCol) Then
If Not pOrderAscCol.Item(pOrderCol.Item(inIndex)) Is Nothing Then
boAscend = pOrderAscCol.Item(pOrderCol.Item(inIndex))
End If
End If
obRC.addOrderAttributeByAscend(pOrderCol(inIndex), boAscend)
Next
End If