Select to view content in your preferred language

VB.NET Samples Code Error

2770
1
Jump to solution
05-21-2015 10:38 AM
BobMaui
Deactivated User

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
Deactivated User

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
Deactivated User

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

0 Kudos