Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF In C#?
Message
 
 
À
18/03/2010 12:40:39
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01455229
Message ID:
01455461
Vues:
58
>>>>Any way to do this in C# like VFP's IIF()?
>>>>
>>>>
>>>>if (Checked)
>>>>{
>>>>    _CheckItemsCount++;
>>>>}
>>>>else
>>>>{
>>>>    _CheckItemsCount--;
>>>>}
>>>>
>>>
>>>
_CheckItemsCount += (Checked) ? 1 : -1;
Cetin
>>
>>For lurkers, here's a VB .net example
>>
>>Dim isYes as Boolean
>>isYes = If(mystr = "yes", True, False)
>>
>>( Izmir'de ilk bahar nasil ? )
>
>Ilkbahari daha goremedik, "Mart kapidan baktirir kazma kurek yaktirir" :) Still under 65 Fahrenheit
>Cetin

In VB is it IF(..) or IIF(...) ?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform