Hello All,
can anybody tell me what is wrong with this code for c#?
tmp.Mobile2 = reader.IsDBNull(19)? reader.GetString(19) : "";
I'm reading datas from accessDB, want to write -> if value = null (no entered data) then return ""
Or any other solution?
Loading

VulpesPosted May 15, 2014, 11:16 AM
It should be:
tmp.Mobile2 = reader.IsDBNull(19) ? "" : reader.GetString(19);
Akhil MittalPosted May 15, 2014, 11:41 PM