first off once again I thank you with this issue....driving me nuts...I am trying my best which does nto seem to be enough....problem is that alone g is undefined...I am defining g from the results of the query (featureset) Private Sub QueryTaskPolice_ExecuteCompletedListBox(ByVal sender As Object, ByVal args As ESRI.ArcGIS.Client.Tasks.QueryEventArgs)
Dim featureSet As FeatureSet = args.FeatureSet
Dim results2 = From g In featureSet
Group g By GroupKey = DirectCast(g.Attributes("Officer"), String) Into r = Group
Select New With {Key .Officer = GroupKey, Key .IncidentNums = r.Sum(Function(i) Convert.ToInt32(i.Attributes("IncidentNum")))}
If I do this, I get the error that g is undefined... Private Sub QueryTaskPolice_ExecuteCompletedListBox(ByVal sender As Object, ByVal args As ESRI.ArcGIS.Client.Tasks.QueryEventArgs)
Dim featureSet As FeatureSet = args.FeatureSet
Dim integerValue As Integer = Convert.ToInt32(g.Attributes("IncidentNum"))
I then tried..
Dim integerValue As Integer = Convert.ToInt32(featureSet.Attributes("IncidentNum"))
.Error 1 'Attributes' is not a member of 'ESRI.ArcGIS.Client.Tasks.FeatureSet'.Then tried this Dim results2 = From g In featureSet
Dim integerValue As Integer = Convert.ToInt32(results2.Attributes("IncidentNum"))
Error 1 'Attributes' is not a member of 'System.Collections.Generic.IEnumerable(Ofuggggggggggggggggg