Click here to Skip to main content
15,908,775 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
Jacob Dixon26-Jul-09 14:51
Jacob Dixon26-Jul-09 14:51 
GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
Mycroft Holmes26-Jul-09 14:59
professionalMycroft Holmes26-Jul-09 14:59 
GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
Jacob Dixon26-Jul-09 15:04
Jacob Dixon26-Jul-09 15:04 
GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
nlarson1126-Jul-09 16:24
nlarson1126-Jul-09 16:24 
GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
Jacob Dixon26-Jul-09 16:28
Jacob Dixon26-Jul-09 16:28 
GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
nlarson1126-Jul-09 16:35
nlarson1126-Jul-09 16:35 
GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
Jacob Dixon26-Jul-09 17:15
Jacob Dixon26-Jul-09 17:15 
GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
nlarson1127-Jul-09 3:03
nlarson1127-Jul-09 3:03 
ya it's a bug...

you can get the same effect by writing a function that will act like the IIF so you'll get the clean look but the function will use the full if/then/else...

't = true part of iif / e = else part of iif
public function MyIIF (b as boolean, t as object, e as object) as object

you can of course overload that to do type-safe checks

public function MyIIF (b as boolean, t as string, e as string) as object
public function MyIIF (b as boolean, t as integer, e as integer) as object


etc

'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous

'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous


GeneralRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
Jacob Dixon27-Jul-09 3:07
Jacob Dixon27-Jul-09 3:07 
AnswerRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
Jack Vanderhorst27-Jul-09 4:37
Jack Vanderhorst27-Jul-09 4:37 
AnswerRe: DBNull... why doesn't this work?!?!?!! ( IIF ) Pin
Dougie the P5-Aug-09 18:07
professionalDougie the P5-Aug-09 18:07 
Questionwhich is faster? Pin
TheMrProgrammer25-Jul-09 19:00
TheMrProgrammer25-Jul-09 19:00 
AnswerRe: which is faster? Pin
Luc Pattyn25-Jul-09 22:34
sitebuilderLuc Pattyn25-Jul-09 22:34 
GeneralRe: which is faster? Pin
TheMrProgrammer26-Jul-09 5:08
TheMrProgrammer26-Jul-09 5:08 
GeneralRe: which is faster? Pin
Luc Pattyn26-Jul-09 8:41
sitebuilderLuc Pattyn26-Jul-09 8:41 
GeneralRe: which is faster? Pin
TheMrProgrammer27-Jul-09 4:13
TheMrProgrammer27-Jul-09 4:13 
GeneralRe: which is faster? Pin
Luc Pattyn27-Jul-09 11:03
sitebuilderLuc Pattyn27-Jul-09 11:03 
QuestionDatagridview checkbox column Pin
sreerajknair25-Jul-09 18:37
sreerajknair25-Jul-09 18:37 
AnswerRe: Datagridview checkbox column Pin
Paramu197325-Jul-09 22:32
Paramu197325-Jul-09 22:32 
QuestionImport xml into ms access database Pin
tessers25-Jul-09 13:03
tessers25-Jul-09 13:03 
AnswerRe: Import xml into ms access database Pin
Christian Graus25-Jul-09 13:46
protectorChristian Graus25-Jul-09 13:46 
GeneralRe: Import xml into ms access database Pin
tessers25-Jul-09 22:32
tessers25-Jul-09 22:32 
GeneralRe: Import xml into ms access database Pin
elizas8-Feb-10 19:24
elizas8-Feb-10 19:24 
QuestionHow to Re-Update the SqlDataAdapter() Pin
Paramu197325-Jul-09 1:36
Paramu197325-Jul-09 1:36 
AnswerRe: How to Re-Update the SqlDataAdapter() [modified] Pin
Andy_L_J25-Jul-09 6:37
Andy_L_J25-Jul-09 6:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.