我一直在浏览一个旧的 VB6 代码,我看到了这样的东西
Set AST = CreateObject("ADODB.Stream")
我有使用 VB6 和 VB.NET 的经验,但我以前从未Set
在我的 VB6 项目中使用过这个关键字。我在互联网上研究了很多什么是用途,Set
我只Properties
知道在VB.NET中只有我知道的用途
Public Property myProperty As String
Get
Return _myProperty
End Get
Set(value as String)
_myProperty = value
End Set
End Property
我认为Set
在上面的代码中使用不同。这两种方法有什么区别?我想知道Set
在VB6中做了什么