UseLocalVcsFiles: Boolean;
The UseLocalVcsFiles property determines whether local versions of the objects added to version control system are used in update.
This property is relevant if the objects added to version control system are used in update.
Available values:
True. Default value. The update will contain the object version that is contained in local files (object versions in the repository and in local files may mismatch).
False. The update will contain the object version that is currently contained in files on the version control system server (the corresponding object version is also saved in the repository database).
Executing the example requires that the repository contains a form with the FORM_1 identifier. This form is added to the version control system.
Add a link to the Metabase system assembly.
Sub UserProc;
Var
MB: IMetabase;
Update: IMetabaseUpdate;
Root: IMetabaseUpdateFolderNode;
FormObj: IMetabaseUpdateObjectNode;
Begin
MB := MetabaseClass.Active;
Update := MB.CreateUpdate;
Update.UseLocalVcsFiles := False;
Root := Update.RootFolder;
FormObj := Root.Add(MetabaseUpdateNodeType.Object) As IMetabaseUpdateObjectNode;
FormObj.Object := MB.ItemById("Form_1");
FormObj.Label := FormObj.Object.Name;
Update.SaveToFileNF("c:\Form_1.pefx");
End Sub UserProc;
After executing the example a new update is created. The form version saved in files of the version control system at the moment is added to the update.
See also: