>>>Any way to do this in C# like VFP's IIF()?
>>>
>>>
>>>if (Checked)
>>>{
>>> _CheckItemsCount++;
>>>}
>>>else
>>>{
>>> _CheckItemsCount--;
>>>}
>>>
>>
>>
_CheckedItemsCount+= (Checked) ? 1:-1;
>
>Never seen this before. Can you explain the syntax?
If Checked = true then 1 otherwise -1
Check the link I gave you in my message for this operator syntax.
If it's not broken, fix it until it is.
My Blog