vb to c# error question

starbuck
09-13-2004, 05:16 AM
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

Anonymous
09-13-2004, 09:26 AM
Try something like this:

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

starbuck
09-13-2004, 09:40 AM
Thanks Mike

Will give that a go

 
Web mp2kmag.com
mapforums.com