/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
MAX value in an array
Fra : bongii


Dato : 12-03-02 13:04

Hey ng. How can i find the max value in an array ?

//bongii



 
 
Janus Klok Lauritsen (12-03-2002)
Kommentar
Fra : Janus Klok Lauritsen


Dato : 12-03-02 13:50

Make a loop and check for max value.
Best regards
Janus
"bongii" <bongii@mail.tele.dk> wrote in message
news:3c8dee4e$0$97357$edfadb0f@dspool01.news.tele.dk...
> Hey ng. How can i find the max value in an array ?




Jakob Andersen (12-03-2002)
Kommentar
Fra : Jakob Andersen


Dato : 12-03-02 14:00

"bongii" <bongii@mail.tele.dk> wrote in message
news:3c8dee4e$0$97357$edfadb0f@dspool01.news.tele.dk...
> Hey ng. How can i find the max value in an array ?


If you mean the element with the highest number in Array look at the
UBound() function.

Otherwise you have to loop through the values and compare them.

--
Jakob Andersen



Søg
Reklame
Statistik
Spørgsmål : 177505
Tips : 31968
Nyheder : 719565
Indlæg : 6408554
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste