VB6 转成VB.NET是遇到的问题
我对VB不熟,项目需要,刚刚接触.
我发现有一个问题,请大家帮帮忙.
在VB6里有着些代码:
Public Property Let TagPath(ByVal vData As String)
.....
End Property
Public Property Get TagPath() As String
........
End Property
Public Function Get_TagPath(ExposureID As Integer) As ADODB.Recordset
........
End Function
在转成VB.NET 后变成:
Public Property TagPath() As String
Get
....
End Get
Set(ByVal Value As String)
....
End Set
End Property
Public Function Get_TagPath(ByRef ExposureID As Short) As ADODB.Recordset
.......
End Function
我发现在VB.NET里TagPath()就找不能被找到(在代码里是有的,但外面引用不到).只要改一下TagPath()的名字或Get_TagPath的名字就可以用了.
是不是VB.NET 里有什么声明冲突的问题啊???