vb6到vb.net转换异常 [英] vb6 to vb.net conversion exception

查看:89
本文介绍了vb6到vb.net转换异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.MoveNext()ComException是未经处理的
不能删除或更改记录,因为表" frmfrocc"包含相关记录bla bla ..我不尝试删除仅在打印过程中进行打印时会发生此异常..

.MoveNext() ComException is Unhandeled
The record cannot be deleted or changed because table ''frmfrocc'' includes related records bla bla.. am not trying to delete just printing in the middle of printing this exception occurs..

推荐答案

这听起来像是您实际上在VB.Net上使用ADO.如果确实如此,我建议您自从将应用程序转换为.NET以来就适应ADO.NET.详细信息: ADO.NET概述 [
This sounds like you''re actually using ADO with VB.Net. If this is really the case I suggest that you adapt to the ADO.NET since you''ve started to convert the application to .NET. More information: ADO.NET Overview[^]


我同意Mika.尝试一下ADO.NET.与ADO相比,到目前为止,它是新鲜空气.

看一下这个示例应用程序.我感觉没有那么多的障碍可以完成我想做的事情.
ADO.NET示例应用程序 [连接字符串 [ ^ ]
I agree with Mika. Give ADO.NET a try. It is by far a breath of fresh air compared to ADO.

Take a look at this sample application. I feel like there is less hoops to jump through to get what I want done. ADO.NET Sample Application[^]

Also, I have found this resource a big help. Connection Strings[^]


这篇关于vb6到vb.net转换异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆