B
Bruno Alexandre
Hi guys,
I created a Class to my program, and it runs fine except one little
detail...
when the Database Value is Null I always get an Error when using it
user.name = trim(reader.item("tName"))
How can I avoid this?
I have
public class user
(...)
private strName as string = ""
property name() as string
get
return strName
end get
set(byval value as string)
strName = value
end set
end property
(...)
end class
how can I test the value for System.DBNull ? I always get error messages
saying that I can't use If Value.IsNullorEmpty Then (...)
--
Bruno Alexandre
(Sintra, PORTUGAL)
I created a Class to my program, and it runs fine except one little
detail...
when the Database Value is Null I always get an Error when using it
user.name = trim(reader.item("tName"))
How can I avoid this?
I have
public class user
(...)
private strName as string = ""
property name() as string
get
return strName
end get
set(byval value as string)
strName = value
end set
end property
(...)
end class
how can I test the value for System.DBNull ? I always get error messages
saying that I can't use If Value.IsNullorEmpty Then (...)
--
Bruno Alexandre
(Sintra, PORTUGAL)