Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Max value
Message
De
17/01/2008 09:12:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01282532
Message ID:
01282536
Vues:
7
This message has been marked as a message which has helped to the initial question of the thread.
If you use datetime values, everything is so much simpler.

>Is there a better way to find max vale between variables ?
>
>I did as below, but I not sure it's the best way
>
>*********************
>
> DO case
> CASE tMinutos1 > tMinutos2 .and. tMinutos1 > tMinutos2
>
> myMaxValue = tMinutos1
>
> CASE tMinutos2 > tMinutos1 .and. tMinutos2 > tMinutos3
>
> myMaxValue = tMinutos2
>
> CASE tMinutos3 > tMinutos1 .and. tMinutos3 > tMinutos2
>
> myMaxValue = tMinutos3
>
> OTHERWISE
> endcase
>***********************
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform