Skip to content

gmplDefaultStatement

Default is a nonterminal, metalanguage statement. It is used to specify default control properties that are ultimately to be authored in the designer code. They are saved by this statement and then read into the back of code storage by the analyser so that they will be picked up, if there is no setting for the property in the actual code.

The attributes of the Default statement are as follows:

AttributeDescription
IdThe identifier of the control type for which default property setting values
are to be supplied.
LangThe designer code language for which the setting values are to be used.

The declarations within the Default statement are as follows:

SubstatementDescription
SettingThis substatement specifies and actual setting to be used.

The attributes of the Setting substatement are as follows:

Attribute

Description

Id

The identifier of the property of the control type for which a setting value is being specified. Note that Font properties are specified as “Font.fontProperty”

Value

The actual default value to be associated with the property. Note that these value often contain special characters that are toxic to Xml so the value may alternatively be specified as text associated with the setting as shown below. When this alternative is used, the entire specification must be on a single line.

<setting id="BackColor"><![CDATA[&H80000005&

The script errors associated with the Default statement are as follows:

ErrorDescription
1031Default command missing required id attribute.
1032The indicated control [%1d] has no class information.
1033Encountered following when expecting ‘setting’: %1d
1034Setting command missing required id attribute.
1035Setting command missing required value attribute.
1036Font Property [%1d] not recognized
1037Property [%1d] not recognized