WITH

WITH Expression

  ...

END WITH

Between the WITH and the END WITH instruction, an expression beginning with a point is referring to Expression. So Expression must be an object.


Example

WITH hButton
  .Text = "Cancel"
END WITH

is equivalent to

hButton.Text = "Cancel"


See also

BREAK, CONTINUE, DO, FOR, FOR EACH, LOOP, REPEAT, UNTIL, WHILE


Previous: WHILE Next: WRITE