P
parez
Hi all,
why in the world would this fail ( throw an exception)
Dim str As String = ""
MsgBox(IIf(IsNumeric(str), Convert.ToInt32(str).ToString, str))
Why does it try to evaluate the true part when the condition is false.
Or am i missing something here.
Thanks in advance.
why in the world would this fail ( throw an exception)
Dim str As String = ""
MsgBox(IIf(IsNumeric(str), Convert.ToInt32(str).ToString, str))
Why does it try to evaluate the true part when the condition is false.
Or am i missing something here.
Thanks in advance.