IMapTopobase.Name

Syntax

Name:String;

Description

The property is read-only.

The Name property returns a topobase name.

Example

Executing the example requires a form with a button named Button1, the UiMap component named UiMap1 and the MapBox component. UiMap is a data source for MapBox. The repository should also contain a map with the MAP_RF identifier.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

MetaBase: IMetabase;

TopoBase: IMapTopobase;

Map: IMap;

Begin

MetaBase := MetabaseClass.Active;

TopoBase := MetaBase.ItemById("MAP_RF").Bind As IMapTopobase;

Map := UiMap1.Map;

Map.Topobase := TopoBase;

TopoBase.SaveToFile("C:\MAP_RF.tbs");

WinApplication.InformationBox("Topobase '" + TopoBase.Name + "' is saved to file");

End Sub Button1OnClick;

After executing the example the MAP_RF map is loaded to the MapBox component. Then the topobase is saved to the C:\MAP_RF.tbs file, and an appropriate information message is displayed.

See also:

IMapTopobase