0

I have a datatable - 1 of the columns is a double
so i read it like this
Dim num As Double = Drow(1)
I get an error about late binding here (with option strict on)

I have tried converting to a double eg
Dim num As Double = convert.toDouble(Drow(1)) but that makes no difference
and
I dont know enough about Direct casting to get round this
could someone help with an example please?

thanks

Mike

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by mpooley
0

Hey Mike,

Try This>>>

Dim ds As New DataSet
'For ds.Tables(0)
 Dim Drow As DataRow = ds.Tables(0).Rows(1) 
 Dim num As Double = CDbl(Drow(1))
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.