MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




vb to c# error question

This is a discussion on vb to c# error question within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi I have a mapppoint ocx on my main formed called map1. in vb.net the following line works with no ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-13-2004
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
vb to c# error question

Hi

I have a mapppoint ocx on my main formed called map1.
in vb.net the following line works with no problem]
map1.activemap.datasets("jobs").delete()
how the same line in c# produces the following error
mappoint.maps.datasets denotes a property where a method was expected.
Any thoughts folks

Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-13-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Try something like this:
Code:
map1.activemap.datasets["jobs"].delete()
Also, make sure that the case is correct - C# is more picky that VB on that, and if the case is incorrect, intellisense doesn't work as nicely as in VB.

Mike Hildner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-13-2004
starbuck's Avatar
Member
Green Belt
 
Join Date: Oct 2003
Posts: 68
cool

Thanks Mike

Will give that a go
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
error, question


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Mappoint Error Mudrover MapPoint 2006/2009 Discussion 5 01-20-2005 03:59 PM
About ERROR 4-40028-1. Error or Bug ? Anonymous MapPoint 2006/2009 Discussion 12 01-11-2005 10:32 AM
I get this following error ananthdeena MapPoint 2006/2009 Discussion 3 01-01-2005 03:46 AM
Error 4605 ? Syd MapPoint 2006/2009 Discussion 1 03-12-2004 05:05 AM
Error message Anonymous MapPoint 2006/2009 Discussion 0 03-16-2003 09:11 PM


All times are GMT -5. The time now is 06:20 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54