create function maxint to return a max given to args
This commit is contained in:
parent
7c746f7e62
commit
e947cb97d7
@ -1247,6 +1247,25 @@ Public Function MISCe_CompareDouble(ByRef base As Double, ByRef compare As Doubl
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function MISCe_MaxInt(ByRef base As Integer, ByRef compare As Integer) As Integer
|
||||||
|
|
||||||
|
If compare < base Then
|
||||||
|
MISCe_MaxInt = base
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
If compare = base Then
|
||||||
|
MISCe_MaxInt = compare
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
If compare > base Then
|
||||||
|
MISCe_MaxInt = compare
|
||||||
|
Exit Function
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Function MISCe_CompareDate(ByRef base As Date, ByRef compare As Date) As Integer
|
Public Function MISCe_CompareDate(ByRef base As Date, ByRef compare As Date) As Integer
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user