stoerst = LBound(arrListe) index = 0 For t = LBound(arrListe) to UBound(arrListe) if arrListe(t) > stoerst stoerst = arrListe(t) index = t end if Next ---- Så vil stoerst indeholde den største værdi og index pladsen i arrayet
vås --- stoerst = arrListe(0) index = 0 For t = LBound(arrListe) to UBound(arrListe) if arrListe(t) > stoerst stoerst = arrListe(t) index = t end if Next -- såen
dbangx >> det er jo an på hvad man vil have og din linje her er gal --- if max< arrListe(t) then max = t --- Du spøger om indekset er mindre end værdien?? hehe ik godt ;o)
hehe ... har det med skrive crap når det skal gå stærkt ;-)
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.