Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Min and Max Functions

Status
Not open for further replies.

InyoTom

Technical User
Feb 4, 2000
33
0
0
US
Search as I might, I can't find Min and Max function, which would suck out the minimum or maximum value from a list. It would be something like:

lngMaxValue = Max(lngX, lngY, lngX)

So I have had to write my own.

Hard to imagine a programming language without these, so I suspect I have not looked in the right place.

Anybody know?

Tom Budlong
 
Where does the data come from for the list? Out of a table(s) or some other source?
 
Just variables. e.g.,

lngX = 50
lngY = 72
lngX = 41

lngMax = Max(lngX, lngY, lngZ)
would return 72.
Tom Budlong
TomBudlong@Bigfoot.com

 
I have not seen a function for what you are doing, I believe you are right about writing your own.
 
InyoTom,



Hmmmmmmmmmmmmm,

I don't think soooooooooooooo?

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top