Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nesting case statements
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00983308
Message ID:
00983531
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
Matthew,

Yes they can, along these lines:
do case
   case ( x = y )
      do case
         case ( z = q )
            ...
         case ...
      endcase
   case ( rand() > 0.5 )
      ...
endcase
so the z = q will only be tested if x = y

>Can CASE statements be nested in VFP6?
>
>I have some IFs in a CASE that are not doing what I want and I thought a CASE inside a CASE would give me the control that I need.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform