Community of VE/MapPoint Users and Developers
This is a discussion on Checking for the existence of a particular DataSet within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; My question: How do I code in VB6 to check for the existence of a particular dataset? If the dataset ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Checking for the existence of a particular DataSet Thanks
__________________ J. R. |
| |||
|
Hi, This is in C#, but you can easy convert it to VB. I think you can use the Index direcly in VB (eg you dont neet the get_Item, and I also think you dont need the object o). Code: // find a dataset, and if exists delete it
object o = "DatasetX";
try {
MapPoint.DataSet DatasetX = MP.ActiveMap.DataSets.get_Item(ref o);
DatasetX.Delete();
} catch {
// Dataset does not exists
}
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| checking, dataset, existence |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Refreshing a dataset | TACEC | MapPoint 2006/2009 Discussion | 1 | 10-21-2005 01:08 PM |
| Creating New Dataset | Yazzy | MapPoint 2006/2009 Discussion | 4 | 08-23-2005 08:20 AM |
| Dataset rendering | Gianmaria | MapPoint 2006/2009 Discussion | 3 | 06-09-2005 03:22 PM |
| How do you add records to a dataset | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-03-2005 04:09 PM |
| DataSet Modifications ? | Anonymous | MapPoint 2006/2009 Discussion | 1 | 09-12-2003 03:44 AM |