Tips on the syntax generated by DWSyntax

Where appropriate the compiler allows for the assigning of numbers or booleans and converts them to strings automatically. When these same property values are read they are returned as a string for the Describe syntax and as an Any variable for dot notation syntax.

Examples

The DataWindow readonly property is stored as 'yes' or 'no'.

Each of the following syntax statements sets the property to 'yes'.

dw_1.Modify("DataWindow.ReadOnly=Yes")dw_1.Modify("DataWindow.ReadOnly=True")dw_1.Object.DataWindow.ReadOnly = 'Yes'dw_1.Object.DataWindow.ReadOnly = True

The result of dw_1.Describe("DataWindow.ReadOnly") is a string containing either 'yes' or 'no'.

The result of dw_1.Object.DataWindow.ReadOnly is an Any containing either 'yes' or 'no'.

Example 2

The Column.Border property is stored as '0' through '6'.

Each of the following syntax statements sets the property to '5'.

dw_1.Modify("Column.Border = 5 ")dw_1.Modify("Column.Border = '5' ")dw_1.Object.Column.Border =  5dw_1.Object.Column.Border = '5'

The result of dw_1.Describe("Column.Border") is always a string.

The result of dw_1.Object.Column.Border is an Any always containing a string.