What errors are you encountering in Visual Studio debugger?
Queryfilter actually return a cursor so you are heading down the wrong path.Try this instead, pretty basic code but hopefully get you in the right direction.dim pFeaCursor as iFeaturecursor = pFClass.search(pqeryfilter, false)dim pFeature as iFeature = pFeaCursor.nextfeaturedim streetname as string = ""do until pfeature is nothing streetname = pfeature.value(pfeature.fields.findfield("Name of Street name field")) lstboxStName.Items.Add(streetname) pfeature = pfeacursor.nextfeatureloop
Hi,I am having trouble trying to populate a listbox with attributes on my vb.net windows form.My shapefile has two fields, an address number and street name. I need to use a query filter to search for an address number, and then populate my listbox with street names that have the same address number. I can't seem to get this to work. Any help or pointers in the right direction is greatly appreciated!
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.