Can "min" return the ordinal?
Posted: Mon Mar 17, 2008 4:28 am
I have code like this...
put min(field lblFirst,field lblSecond,field lblThird) into varMin
but I want to know which field holds the minimum value
so I use...
if field lblFirst = varMin then
put 1 into varMin1
end if
etc.
Can the min function return the ordinal (i.e. 1,2,or3)?
I would also like to know if two fields contain the same
number.
put min(field lblFirst,field lblSecond,field lblThird) into varMin
but I want to know which field holds the minimum value
so I use...
if field lblFirst = varMin then
put 1 into varMin1
end if
etc.
Can the min function return the ordinal (i.e. 1,2,or3)?
I would also like to know if two fields contain the same
number.