<?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: QueryFilter to match Guids in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/queryfilter-to-match-guids/m-p/226228#M1078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I remember at some point I was running into issues with case sensitivity, although I don't recall if this was a mobile version issue, or a SQL issue, or a problem with my code.&amp;nbsp; I know I wrote a function below, however apparently I didn't end up using it.&amp;nbsp; I have filters like this in a lot of places in my code though:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;string whereClause = String.Format("GlobalID = '{{{0}}}'", globalID.ToString().ToUpper());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;


&amp;nbsp; public static string GetGlobalIDWhereClause(string columnName, GlobalId globalID) {
&amp;nbsp;&amp;nbsp; return String.Format("({0} = '{{{1}}}' OR {0} = '{{{2}}}')", columnName, globalID.ToString().ToUpper(), globalID.ToString());
&amp;nbsp; }

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 11:01:12 GMT</pubDate>
    <dc:creator>StevenSchuldt</dc:creator>
    <dc:date>2021-12-11T11:01:12Z</dc:date>
    <item>
      <title>QueryFilter to match Guids</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/queryfilter-to-match-guids/m-p/226227#M1077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having absolutely no luck trying to get FeatureDataRow or FeatureDataReader instances matched to a single record with a particular Guid. Anyone had any success with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I've tried with no success:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter query = new QueryFilter("ID = " + guid);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter query = new QueryFilter("ID = '" + guid.ToString() + "'");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter query = new QueryFilter("ID = '{" + guid.ToString() + "}'");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryFilter query = new QueryFilter("ID = " + "'{" + guid.ToString() + "}'");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've looped through the contents of my cache and it's definitely in there but I'd rather not have to loop through every time I want to get a single feature row.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:58:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/queryfilter-to-match-guids/m-p/226227#M1077</guid>
      <dc:creator>AndrewCorcoran</dc:creator>
      <dc:date>2011-10-11T13:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFilter to match Guids</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/queryfilter-to-match-guids/m-p/226228#M1078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I remember at some point I was running into issues with case sensitivity, although I don't recall if this was a mobile version issue, or a SQL issue, or a problem with my code.&amp;nbsp; I know I wrote a function below, however apparently I didn't end up using it.&amp;nbsp; I have filters like this in a lot of places in my code though:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;string whereClause = String.Format("GlobalID = '{{{0}}}'", globalID.ToString().ToUpper());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;


&amp;nbsp; public static string GetGlobalIDWhereClause(string columnName, GlobalId globalID) {
&amp;nbsp;&amp;nbsp; return String.Format("({0} = '{{{1}}}' OR {0} = '{{{2}}}')", columnName, globalID.ToString().ToUpper(), globalID.ToString());
&amp;nbsp; }

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/queryfilter-to-match-guids/m-p/226228#M1078</guid>
      <dc:creator>StevenSchuldt</dc:creator>
      <dc:date>2021-12-11T11:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: QueryFilter to match Guids</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/queryfilter-to-match-guids/m-p/226229#M1079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; That worked a treat!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 06:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/queryfilter-to-match-guids/m-p/226229#M1079</guid>
      <dc:creator>AndrewCorcoran</dc:creator>
      <dc:date>2011-10-12T06:52:52Z</dc:date>
    </item>
  </channel>
</rss>

