H
Hon Yuen, Ng
Hi
This is a newbie question.
I've a datatable that contains null value. Sometime i need to store this
data into different variables. However, error will be thrown if the data
i tried to stored in the variable is a null value.
E.g.
Dim int As Int64
Dim null As Object
null = DBNull.Value
int = null 'this will throw error
To solve this, i have to check if the value is DBNull each time. Is
there a simpler way to do this?
Thanks in advance.
From,
Hon Yuen, Ng
This is a newbie question.
I've a datatable that contains null value. Sometime i need to store this
data into different variables. However, error will be thrown if the data
i tried to stored in the variable is a null value.
E.g.
Dim int As Int64
Dim null As Object
null = DBNull.Value
int = null 'this will throw error
To solve this, i have to check if the value is DBNull each time. Is
there a simpler way to do this?
Thanks in advance.
From,
Hon Yuen, Ng