本文介绍了将财产变为功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将以下属性更改为函数?
其在vb6中我想将其转换为vb.net。
Public Property Let PathToTop(pPathToTop As String)
lPathToTop = pPathToTop
设置lAttribute = Nothing
设置lAttribute = lDatabase.GetProperties(lPathToTop )
结束财产
公共财产获取PathToTop()作为字符串
PathToTop = lPathToTop
结束物业
谢谢
解决方案
how can i change the below property into a function ?
its in vb6 and i want to convert it into vb.net .
Public Property Let PathToTop(pPathToTop As String)
lPathToTop = pPathToTop
Set lAttribute = Nothing
Set lAttribute = lDatabase.GetProperties(lPathToTop)
End Property
Public Property Get PathToTop() As String
PathToTop = lPathToTop
End Property
Thanks
解决方案
这篇关于将财产变为功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!