VB.NET Samples Code Error

2646
1
Jump to solution
05-21-2015 10:38 AM
BobMaui
New Contributor

From the Code Examples Page I'm trying to workthrough the Editor_Sketching sample. However, when I get to the following line it gives an error "End of Statement expected". Can anyone show me my error? I've tried several combinations but I just can;'t get this line working. The sample does not work without it so I really need an answer on something to try...

Dim myGeometry As Esri.ArcGISRuntime.Geometry.Geometry = Await Mapview1.Editor.RequestShapeAsync(Esri.ArcGISRuntime.Controls.DrawShape.Point)

Every one of these lines gives the same error! Does anyone have working VB.NET code for Drawing a graphic that works? Thanks.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
BobMaui
New Contributor

Found It! The Sub needs to be marked with Async. Missed that when copying over the code. Regards.

View solution in original post

0 Kudos
1 Reply
BobMaui
New Contributor

Found It! The Sub needs to be marked with Async. Missed that when copying over the code. Regards.

0 Kudos