This project is read-only.

Methods get_ doesn't work

Nov 19, 2015 at 1:22 PM
Edited Nov 19, 2015 at 1:27 PM
Hy,

It seems that the method map.get_ (like var ogr = axMap1.get_OgrLayer(layerHandle)) doesn't works on a vba project (in Access 2010). I can't find them in the object explorer (I installed the last version of the ocx)
Is-it ossible ?
thank's
Nov 21, 2015 at 5:08 PM
I found the answer... it works without the get_ behind...
Marked as answer by pmeems on 1/21/2016 at 7:53 AM
Jan 21, 2016 at 3:53 PM
Yes,

For reasons unknown Microsoft decided to prepend get_ and set_ to methods in C#.
For VB.NET this is not necessary. For .NET v4 this has been fixed for C# as well.

So when you see get_MethodName you can use MethodName in VB.NET and VBA.