About the ternary that you propose, I can't think where I would need that.
Also, in VB6 it can be done like this:
But the other one, could have some uses IMO:Code:If condition Then a = 10 Else b = 10
Code:FontName = If(nFont is Nothing, "Arial", nFont.Name)




Reply With Quote