Factorizes the expression of an element on which several sub-elements or properties are accessed.
WITH <Expression representing a base element>
:<Member or attribute>
Marks the beginning of the statement block.
<Expression representing a base element>:
Element used. The following elements can be used:
Caution: The expression representing the base element is evaluated once only.
- the controls,
- the HFSQL files,
- the data sources,
- the advanced types (Record, xml节点型, ...),
- the structures,
- the classes,
- the .NET objects and the Windows Store app objects.
Marks the end of the statement block.
The WITH blocks can be nested. However, the element on which the accesses to the sub-elements, properties or members are performed is always the element of the most inside block.
- In a class method, you cannot access the members of the class with the <:Member> syntax inside a WITH block. The ':' operator is reserved to the element of the WITH block.
- The debugger is used to view the sub-elements of the current WITH block.