DataTable 0行数据 没有的问题!急急急急急急急急
Dim jcif As DataTable
jcif=db.executeAdapter() '在数据库查询DataTable值 付给jcif
Dim jcif_row As DataRow
如果 jcif 是空的
jcif_row=jcif.Rows(0)那jcif.Rows(0) 就报错 0行没有数据的错误
除了 If jcif.Rows.Count > 0 Then
jcif_row = jcif.Rows(0)
End If
这样解决 还有更好的方法吗?即使 jcif没有0行 能让jcif_row中的值都是空的