Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF In C#?
Message
From
18/03/2010 12:40:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/03/2010 22:35:38
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Miscellaneous
Thread ID:
01455229
Message ID:
01455458
Views:
59
>>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform