datatable - DBNULL to String is not valid -


i have returning datatable has cell value of nothing passed function ex. row("incident_idcrimes") column in datable

controller.getcrime(row("incident_idcrimes")) function returns either has value or nothing.

if catch return value of nothing using try catch will

return nothing 

how create formula catch passing function?

if isnull({stat.idcrimes}) = true "none" else {stat.idcrimes} 

this formula give me error

enter image description here

isnull({stat.idcrimes}) 

this returns boolean (either true or false), purpose of comparing value again?

you can change as

if isnull({stat.idcrimes})  "none"  else {stat.idcrimes} 

edit*****************

 if {stat.idcrimes}=cstr("")     "none"      else {stat.idcrimes} 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -