Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Minimum
Message
De
17/06/2014 09:20:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01601946
Message ID:
01601961
Vues:
74
>
>rn1 = 10
>rn2 = 20
>rn=min(rn1,rn2)
>? rn
>
>rn gives the lowest value 10
>how would I get rn to show 'rn1' instead - ie the name of the variable.
>
DO CASE 
CASE m.rn1 < m.nrn2
  cResult = "rn1"
CASE m.rn2 < m.rn1
  cResult = "rn2"
OTHERWISE
  * Whatever you want to do if they're the same
ENDCASE
Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform