Max

Public Function Max(ByVal Paramarray Values As Double)

Returns the maximum value of the specified numeric values.

Dim lOrderAmount = Max(pOrderAmount, 1) 'Make sure OrderAmount is at least 1

See also: