简体   繁体   English

将代码转换为vb.net

[英]Converting Code to vb.net

I am having problem in this code while converting vb6 code to vb.net vb6代码转换为vb.net时,此代码出现问题

Code: 码:

Set recset = New ADODB.Recordset
recset.Open("select * from mktrate", cnMain, 3, 3)

Error: 错误:

"Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another." “参数类型错误,超出可接受范围或彼此冲突。”

cnMain is not defined. cnMain未定义。 That is your connection. 那就是你的联系。

Also 3 is a static cursor, 3 is also optimistic locking, does your database still support this (it probably does). 另外3是静态游标,3也是乐观锁定,您的数据库是否仍支持此(可能呢)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM