getConstants

getConstants(constDict: ConstantNDict input);

The getConstants method of the Type class populates the ConstantNDict class specified in the constDict parameter with all constants on the receiver class.

The dictionary is not cleared before instances are added.

The following example shows the use of the getConstants method.

vars
    dict : ConstantNDict;
    con  : Constant;
begin
    create dict transient;
    getConstants(dict);
    foreach con in dict do
        ...                   // do some processing here
    endforeach;
epilog
    delete dict;
end;