Hi Brian,
I think this is rather a language feature than a framework feature (although maybe the framework has something for it as well).
In C#, you can use ?: operator, like this:
Code:
int a = 4;
int b = 0;
b = (a == 4) ? 10 : 12;
MessageBox.Show(b.ToString());
This will display 10 when a equals 4 (as in this example), or 12 in all other cases.
I don't think there is an equal alternative in Visual Basic that provides the same short cut, other that IIF and If / Then Else statements.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to:
The Beautiful Ones by
Prince and the Revolution (Track 3 from the album:
Purple Rain)
What's This?