Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Switch Case Statements
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Switch Case Statements
Divers
Thread ID:
00929985
Message ID:
00929985
Vues:
44
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform