PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → WB19: How to find maximum value in a two dimensional array?
WB19: How to find maximum value in a two dimensional array?
Iniciado por guest, 18,jun. 2015 14:04 - 2 respuestas
Publicado el 18,junio 2015 - 14:04
How can I find the maximum value in a field in a two dimensional array?
I assume I must do an arraysort() on the field first.
But what is the correct Arrayseek() syntax for finding the maximum value?

Many thanks,
Michael
Publicado el 18,junio 2015 - 14:43
Hello,

If you sort your array descending on your field (assuming your field is a numeric type), then the first occurrence of your array is what you need

Regards,
Bart
Publicado el 19,junio 2015 - 17:10
Thanks Bart.

Michael