Type: MsVariableType;
The Type property determines advanced parameters of the modeling variable.
Sub Main;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Variable: IMsVariable;
Begin
MB := MetabaseClass.Active;
MObj := MB.ItemByIdNamespace("Var_1", MB.ItemById("KONT_MODEL").Key).Edit;
Variable := MObj As IMsVariable;
Variable.Type := (Not MsVariableType.Loading) And (Not MsVariableType.Saving);
MObj.Save;
End Sub Main;
After executing the example both advanced parameters are disabled for the modeling variable with the Var_1 identifier.
See also: