Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Switch Case Statements
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Switch Case Statements
Miscellaneous
Thread ID:
00929985
Message ID:
00929985
Views:
45
In VFP we could do this:
do case
 case i < 20
   * Do this
 case i < 40
   * Do that
 otherwise
   * Do that other thing
endcase
In C# it seems you cannot do a logical comparison:
for ( int i = 0; i < 50 ; i++ )
{
switch ( i )
{
  case i < 20:
    do this;
    break;
  default:
    break;
}
}
etc...

What is the easiest way to get the same logic as the former example using VFP in C#?
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Next
Reply
Map
View

Click here to load this message in the networking platform