IMapxBox.OleObject

Syntax

OleObject: Variant;

Description

The OleObject property returns the object that was placed to the MapxBox container.

Comments

All operations with the loaded object are performed using properties and methods of the class Variant.

Example

Executing the example requires a form, the Button1 button on it and the MapxBox component named MapxBox1 in the repository. The MapInfo application with configured list of maps is installed in the operating system.

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

Var

Map, v: Variant;

Begin

Map := MapxBox1.OleObject;

v := Map.GetProperty("GeoSets");

v := v.GetPropertyEx("Item", 1);

v := v.GetProperty("PathName");

Self.Text := v As String;

End Sub Button1OnClick;

After executing the example pressing the button displays the path and name of the file loaded in the MapxBox1 in the form name.

See also:

IMapxBox