https://foro.gambas-es.org/viewtopic.php?f=1&t=5291&p=31219#p31219
-----------------------------------
Shell
Viernes, 25 Marzo 2016, 13:33

Re: Función Min
-----------------------------------
[code linenumbers=false syntax=gambas]
Public Sub Minimo(lista As Integer[]) As Integer
  
  Return lista.Sort()[0]
  
End

Public Sub Maximo(lista As Integer[]) As Integer
  
  Return lista.Sort(True)[0]
  
End
[/code]

Saludos!


