我一直在浏览一个旧的 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中做了什么