[分享]DBNull无法转换为String的解决方法 Post By:2018/11/11 11:10:00 [只看该作者]
帮助文件有如下一段代码:
Dim cmd As new SQLCommand cmd.CommandText = "xx 部门,职务 from {员工} Where 姓名 = '王伟'" cmd.ConnectionName = "数据源名称" Dim Values = cmd.ExecuteValues If Values.Count > 0 Then Output.show(Values("部门")) Output.show(Values("职务")) End If