Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Minimum
Message
From
17/06/2014 09:20:49
 
 
To
17/06/2014 02:26:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01601946
Message ID:
01601961
Views:
73
>
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform