Community of VE/MapPoint Users and Developers
This is a discussion on OleVariant Problem with Delphi 6 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello I'm trying to use the Item property within Delphi 6 such as: - FMap.Shapes.Item[1].Name := 'my name'; but it ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| OleVariant Problem with Delphi 6 I'm trying to use the Item property within Delphi 6 such as: - FMap.Shapes.Item[1].Name := 'my name'; but it keeps giving me the erorr message: - Types of actual and formal var parameters must be identical I must admit, I'm lost around variants and Olevariants, so I don't know where to start looking for a problem. Any help would be appreciated. Thanks in advance. Les |
| |||
| Re: OleVariant Problem with Delphi 6
Top204: You first need to define a variable to store the item number. In your routine, create a variable defined as an olevariant. For example: procedure TFMain.AssignName; var i begin FMap.Shapes.Item[i].Name := 'my name'; end; That should do it. |
| |||
| Re: OleVariant Problem with Delphi 6
Top204: You first need to define a variable to store the item number. In your routine, create a variable defined as an olevariant. For example: procedure TFMain.AssignName; var i begin i := 1; FMap.Shapes.Item[i].Name := 'my name'; end; That should do it.[/quote] |
![]() |
| Tags |
| delphi, olevariant, problem |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delphi class | terrastudios | MapPoint 2006/2009 Discussion | 9 | 12-02-2005 05:01 AM |
| OLEVariant conversion | phoque | MapPoint 2006/2009 Discussion | 1 | 10-10-2005 01:44 PM |
| Mappoint in OleContainer problem //Delphi | Anonymous | MapPoint 2006/2009 Discussion | 6 | 01-08-2005 02:03 PM |
| Delphi OleContainer Resize Problem. | Sheridan | MapPoint 2006/2009 Discussion | 5 | 12-19-2003 06:50 AM |
| Delphi | Anonymous | MapPoint 2006/2009 Discussion | 2 | 12-18-2003 12:11 PM |