Select Layer By Attribute (C# .NET)

745
1
06-13-2012 05:56 AM
VojtěchMachoň
New Contributor
Hi all,

im trying to select some features from table_view using geoprocessing in C# .NET. There is no problem with selecting just one feature(line in table) with the specified "where_clause" like ID = 10, but the problem is, when I want to use variables to select some features. For example select by using:  for(int a = 0; a < 10; a++) and I want to select feature(line in table) where "ID = i".   Maybe it is something like this( " ID = % i " + a %) ??

voitii
Reply
0 Kudos
1 Reply
VojtěchMachoň
New Contributor
Hi all,

im trying to select some features from table_view using geoprocessing in C# .NET. There is no problem with selecting just one feature(line in table) with the specified "where_clause" like ID = 10, but the problem is, when I want to use variables to select some features. For example select by using:  for(int a = 0; a < 10; a++) and I want to select feature(line in table) where "ID = i".   Maybe it is something like this( " ID = % i " + a %) ??

voitii


i solve it...right now 🙂
Reply
0 Kudos