IIF in vb.net acts weird.. or is it me
- From: "parez" <psawant@xxxxxxxxx>
- Date: 27 Feb 2006 13:58:53 -0800
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.
.
- Follow-Ups:
- Re: IIF in vb.net acts weird.. or is it me
- From: parez
- Re: IIF in vb.net acts weird.. or is it me
- From: Herfried K. Wagner [MVP]
- Re: IIF in vb.net acts weird.. or is it me
- Prev by Date: extract data from spread sheet
- Next by Date: Help authoring tool for Windows app?
- Previous by thread: extract data from spread sheet
- Next by thread: Re: IIF in vb.net acts weird.. or is it me
- Index(es):
Relevant Pages
|