用变量替换的方式简化代码
以下两种方法的效果是相同的: Thisform.pageframe.page1.container.object.caption="This" Thisform.pageframe.page1.container.object.left=10 Thisform.pageframe.page1.container.object.top=50
ReplFrom = Thisform.pageframe.page1.container.object ReplFrom.caption = "This " ReplFrom.left = 10 ReplFrom.top = 50 用WITH命令也可以达到效果: WITH Thisform.pageframe.page1.container.object .caption = "This " .left = 10 .top = 50 ENDWITH
[此贴子已经被作者于2004-11-11 17:26:59编辑过]