WITH example
The following code from a WFM file assigns values to the properties of a newly created Query object inside a WITH block. In this excerpted code, this refers to the form:
this.messages1 = new Query( )
with this.messages1
left = 55.25
top = 4.9
sql = "select * from MESSAGES.DB"
active = true
endwith
Without the WITH block, the code would have looked like this:
this.messages1 = new Query( )
this.messages1.left = 55.25
this.messages1.top = 4.9
this.messages1.sql = "select * from MESSAGES.DB"
this.messages1.active = true