Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking variables value sequence
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01283482
Message ID:
01283744
Views:
13
Try this and let us know if it works.
DO CASE
   CASE MAX(preco1, preco2, preco3) >= preco4 .and. preco4 # 0
      ** test price 4, this is the biggest
      MESSAGEBOX( "O price 4 must be bigger than 1, 2 e 3.)
      REPLACE min4 WITH 0, ;
              hs4 WITH 0, ;
              preco4 WITH 0
   CASE MAX(preco1, preco2) >= preco3 .and. preco3 # 0
      ** test price 3
      MESSAGEBOX( "price 3 must be bigger than prices ")
      REPLACE min3 WITH 0, ;
              hs3 WITH 0, ;
              preco3 WITH 0
   CASE preco1 >= preco2 .and. preco2 # 0
      ** test price 1 , this is the lowest
      MESSAGEBOX( "price 2 must be bigger than price 1 ")
      REPLACE min2 WITH 0, ;
              hs2 WITH 0, ;
              preco2 WITH 0
ENDCASE
ThisForm.Refresh()
Previous
Reply
Map
View

Click here to load this message in the networking platform