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] |
![]() |
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 04:01 AM |
| OLEVariant conversion | phoque | MapPoint 2006/2009 Discussion | 1 | 10-10-2005 12:44 PM |
| Mappoint in OleContainer problem //Delphi | Anonymous | MapPoint 2006/2009 Discussion | 6 | 01-08-2005 01:03 PM |
| Delphi OleContainer Resize Problem. | Sheridan | MapPoint 2006/2009 Discussion | 5 | 12-19-2003 05:50 AM |
| Delphi | Anonymous | MapPoint 2006/2009 Discussion | 2 | 12-18-2003 11:11 AM |
Kitzbuhel Skiing
Kitzbuhel is architecturally the most beautiful Ski resort in Austria. Kitzbuhel skiing encourages skiers to test their skills on the numerous pistes around the village.
European City Breaks
Find European City Breaks on Travel Counsellors. Based on holidays booked this year, these are the most popular City Breaks for 2006
Holidays Thailand
Holidays in Thailand are hugely diverse with wonderful luxury resorts and beaches but also some lovely forested mountains with interesting hill tribes. See dealchecker.co.uk.
Holidays in Egypt
A holiday in Egypt will stimulate your mind, captivate your heart and spark your senses. Visit this exceptional country, book today!
Cheap Cyprus Holidays
Finding cheap Cyprus holidays can be difficult unless you know where to look and where to book. With ulookubook.com you can conduct a simple search to find the latest holiday deals to your particular destination.
Travel
Before making a choice regarding travel, check out the amazing variety of options on Travel.co.uk.
Lanzarote Holidays
Visit the easternmost island of the archipelago! Book Lanzarote holidays at On The Beach!