The CHG file is a script for testing the component settings, and controls the component behaviour in the Component Inspector view in Processor Expert.
This file should implement implementation-independent tests and report errors if the component setting is incorrect (component function is not defined for this component settings). For example, the CHG file can generate error if the buffer size is lower than 16 bytes. You can generate error messages using commands: %error, %warning, %hint or you can change or read the value of any property/method/event using special commands %set and %get. These commands can be used only in CHG files.
The following is the syntax of Set command:
%set {Symbol} {FeatureSymbol} {Value}
Description:
List of FeatureSymbols:
{Symbol} must be symbol of any property.
{Value} must be yes or no.
{Symbol} must be symbol of any method or event.
{Value} must be
{Symbol} must be symbol of any property.
{Value} must be value for the property (the same as you can enter in the Processor Expert Component Inspector). Integer value can be expressed in enhanced format.
{Symbol} must be symbol of property of type: integer number, real number, or list of items.
{Value} must be decimal number.
The following is the syntax of Get command:
Syntax:
%get({Symbol},{FeatureSymbol})
List of known symbols is the same as for %set command. Result is value of selected feature.
Example:
%if defined(Property1) & Property1="MASTER"
%error Sorry - this feature is not implemented yet.
%endif
%-
%if defined(OutputBufferSize) & OutputBufferSize="0"
%set SendData Selection never
%else
%set SendData Selection enable
%endif
There is complete component BasicProperties in this version of CDE. This component contains example of CHG file and TST file.