相关疑难解决方法(0)

如何在With ... End With中访问对象本身

一些代码来说明我的问题:

With Test.AnObject

    .Something = 1337
    .AnotherThing = "Hello"

    ''// why can't I do this to pass the object itself:
    Test2.Subroutine(.)
    ''// ... and is there an equivalent, other than repeating the object in With?

End With
Run Code Online (Sandbox Code Playgroud)

vb.net with-statement

15
推荐指数
3
解决办法
5121
查看次数

标签 统计

vb.net ×1

with-statement ×1