VBScript---With 语句

With 语句

对一个对象执行一系列的语句。

1 With object
2 statements
3 End With
1 With MyLabel
2 .Height = 2000
3 .Width = 2000
4 .Caption = "这是MyLabel"
5 End With

注意  一旦进入了 With 块,object是不可改变的。因此,不能使用一个With语句去改变若干对象的值。



posted on 2012-04-04 00:48  大辉4266  阅读(256)  评论(0编辑  收藏  举报

导航