Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrays - finding the max value
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00662347
Message ID:
00662604
Vues:
16
>>>How to find out the maximum value of the elements in an array?
>>>Calculate doesnt seem to be working.
>>>
>>You have to loop thru all the elements of array.
lnMaxVal = myarray[1]
>>FOR i=2 TO ALEN(myarray)
>>  lnMaxVal = MAX(lnMaxVal, myarray[i])
>>ENDFOR
>
>How about ASORT()?

It's too easy. :)
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform