判断若为空则… If mydt Is Nothing Then判断若非空则… If Not mydt Is Nothing Then
参考:ls.compute("sum(尺码1)","货号=a1"))这个可以得到货号a1的尺码1汇总
有类似empty之类的属性吧。看下msdn。