add max long function

This commit is contained in:
Paul Trowbridge 2017-09-28 09:26:50 -04:00
parent e947cb97d7
commit 949c561a13

View File

@ -2051,3 +2051,22 @@ Public Function json_from_table(ByRef tbl() As Variant, ByRef array_label As Str
json_from_table = ajson
End Function
Public Function MISCe_MaxLng(ByRef base As Long, ByRef compare As Long) As Long
If compare < base Then
MISCe_MaxLng = base
Exit Function
End If
If compare = base Then
MISCe_MaxLng = compare
Exit Function
End If
If compare > base Then
MISCe_MaxLng = compare
Exit Function
End If
End Function