Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
C# Equivalent To VFP DO CASE
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
00972871
Message ID:
00972882
Vues:
14
if ( condition a ) // case 1
{
    //Code here
}
else if ( condition b ) //case 2
{
    //code here
}
else if ..... // case 3
else..... //Otherwise
HTH

>I am trying to convert some strings based on conditions. In VFP I would do something like:
>
>
>DO CASE
>CASE condition a
>   && code here
>CASE condition b
>   && code here
>OTHERWISE
>   && code here
>ENDCASE
>
>
>How would this be coded in C#?
>
>TIA, Kevin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform