IRdsAttribute.PredefinedType

Syntax

PredefinedType: RdsPredefinedAttribute;

Description

The PredefinedType property returns assignment of a system attribute.

Example

Sub UserProc;
Var
    MB : IMetabase;
    MbObj : IMetabaseObject;
    Dic : IRdsDictionary;
    Att : IRdsAttribute;
    PType : Integer;
Begin
    MB := MetabaseClass.Active;
    MbObj := MB.ItemByIdNamespace("CREATEATTR", Mb.ItemById("RDSBASE").Key).Bind;
    Dic := MbObj As IRdsDictionary;
    Att := Dic.Attributes.FindById("KEY");
    PType := Att.PredefinedType;
End Sub UserProc;

After executing the example variable PType stores type value of a system attribute KEY.

See also:

IRdsAttribute