PointInTime.Compare
Syntax:
Parameters:
<PointInTime> (required)
A point in time that is compared.
Returned value:
-1 - if the point in time is less than the other point in time, 0 - if the point in time is equal to the other point in time, 1 - if the point in time is greater than the other point in time.
Description:
Availability:
Example:
Moment1 = New PointOfTime(Doc1.Date, Doc1); Moment2 = New PointOfTime(Doc2.Date, Doc2); If Moment1.Compare(Moment2) = -1 Then Moment1 = Moment2; EndIf; |