<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IQueryFilter.Subfields does not work. in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/iqueryfilter-subfields-does-not-work/m-p/187517#M4876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter.SubFields = "FieldA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter.AddField("FieldB")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jul 2010 18:39:14 GMT</pubDate>
    <dc:creator>KirkKuykendall</dc:creator>
    <dc:date>2010-07-01T18:39:14Z</dc:date>
    <item>
      <title>IQueryFilter.Subfields does not work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iqueryfilter-subfields-does-not-work/m-p/187516#M4875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Language: VB.NET&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcObjects version: 9.3.x&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How come when I do this... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter.SubFields = ""&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter.AddField(SomeFieldName)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then this...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Debug.Print QueryFilter.SubFields&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get this retarded output...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"*"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which to me, and according to the help, illustrates that Subfields just ignores whatever you do and doesn't work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 20:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iqueryfilter-subfields-does-not-work/m-p/187516#M4875</guid>
      <dc:creator>ESRICustomer</dc:creator>
      <dc:date>2010-06-30T20:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: IQueryFilter.Subfields does not work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iqueryfilter-subfields-does-not-work/m-p/187517#M4876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter.SubFields = "FieldA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter.AddField("FieldB")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 18:39:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iqueryfilter-subfields-does-not-work/m-p/187517#M4876</guid>
      <dc:creator>KirkKuykendall</dc:creator>
      <dc:date>2010-07-01T18:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: IQueryFilter.Subfields does not work.</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/iqueryfilter-subfields-does-not-work/m-p/187518#M4877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The SubFields property and AddField method work as documented.&amp;nbsp; The SubFields property is a comma-delimited list of field names which is set to "*" by default.&amp;nbsp; "*" is standard SQL for all fields.&amp;nbsp; AddField adds a field name to this list.&amp;nbsp; If you call AddField when SubFields is set to "*", then it does nothing because adding a field to the list when it's already set for all fields would be redundant.&amp;nbsp; If you set the SubFields property to a single field name or a comma-delimited list of field names, then call AddField, it will add that field to the list (see Kirk's example above).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 11:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/iqueryfilter-subfields-does-not-work/m-p/187518#M4877</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-07-02T11:34:12Z</dc:date>
    </item>
  </channel>
</rss>

