请问赋空值为什么不成功
Dim dsService As New clsProService.MppsServiceSet()
Dim drService As MppsServiceSet.MppsServiceSetRow
with drService
.name = system.convert.dbnull
end with
我在dsservice中定义的name列是string型的,当运行上述位置时,出错了,信息为:
"System.InvalidCastException: Cast from type 'DBNull' to type 'String' is not valid.
at Microsoft.VisualBasic.CompilerServices.StringType.FromObject(Object Value)
at VPOSGateway.IBank1001.ModifyPersonDNA(Byte[] reqbuffer)
我尝试换成
.name= dbnull.value 也不行,请问如何给 null 值 呢 ,谢谢!