WITH
WITH Object
...
END WITH
在WITH语句和
END WITH语句之间,以“.”开头的表达式被委托给Object对象。
WITH ...
END WITH结构可以嵌套。
示例
WITH hButton
.Text = "Cancel"
END WITH
'等价于
hButton.Text = "Cancel"
数组快捷访问器
自从 3.5
从Gambas 3.5开始,下列语法可用作数组快捷访问器。
With Array
.[0] = "First slot"
.[1] = "Second slot"
End With
With Collection
!key = "Value"
End With
参见