IMetaAttribute.Nullable

Syntax

Nullable: Boolean;

Description

The Nullable property determines whether an element may have empty value by this attribute.

Comments

Available values:

Example

Executing the example requires a time series database with the OBJ_FC identifier in the repository.

Sub UserProc;
Var
    MB: IMetabase;
    Rubr: IRubricator;
    Facts: IMetabaseObject;
    Att: IMetaAttribute;
Begin
    MB := MetabaseClass.Active;
    Rubr := MB.ItemById("OBJ_FC").Bind As IRubricator;
    Facts := (Rubr.Facts As IMetabaseObject).Edit;
    Att := (Facts As IMetaDictionary).Attributes.Add;
    Att.Id := "A_COMMENT";
    Att.Name := Comment;
    Att.Kind := MetaAttributeKind.Comment;
    Att.DataType := DbDataType.String;
    Att.DefaultValue := Comment;
    Att.Hidden := False;
    Att.Nullable := True;
    Att.HasMultipleValues := False;
    Att.FieldSize := 255;
    Facts.Save;
End Sub UserProc;

After executing the example, the Comment attribute is added to the dictionary that contains information about time series of the database with the OBJ_FC identifier. Attributes parameters: string (length 255 characters), not hidden, multiple values are not available, may contain empty values.

See also:

IMetaAttribute