VB with ... end with 作用

例如:
with text1
.text="你好"
.multiline=true
.locked=true
.maxlength=10
end with

这个就相当于
text1.text="你好"
text1.multiline=true
text1.locked=true
text1.maxlength=10

posted @ 2010-09-15 09:16  奋斗中...  阅读(2148)  评论(0编辑  收藏  举报