Max of three variables

mcgrcoAgain

Registered User.
Local time
Tomorrow, 05:24
Joined
Jan 26, 2006
Messages
47
Hi there, it must be friday as I'm drawing a blank.

I have a function that passes three integers to the function

eg 2, 5, 6,. i need to extract the max eg 6. any ideas??

Many thanks
 
Nothing fancy:
Code:
answer = a
If answer <  b Then
   answer = b
End If
If answer < c then
   answer = c
End If
 
Last edited:
Thanks. Simple but effective
 

Users who are viewing this thread

Back
Top Bottom