<?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: Search (VB.NET) in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645294#M4050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This has worked for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim whereClause As String = ("Situsall LIKE" + Space(1) + "'" + Tboxsearch.Text + "%" + "'")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Margo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Mar 2011 18:39:23 GMT</pubDate>
    <dc:creator>MargoBlosser</dc:creator>
    <dc:date>2011-03-30T18:39:23Z</dc:date>
    <item>
      <title>Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645293#M4049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having an issue searching using VB.NET. I am using the following to search a file number but it needs to be entered exactly as in the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim SrchStr As String = "File_Numbe = " &amp;amp; SrchTxt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to be able to enter a patial number and give me the matching results. I have tried the following with no success. Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim SrchStr As String = "File_Numbe LIKE % " &amp;amp; SrchTxt &amp;amp; "%"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim SrchStr As String = "File_Numbe LIKE '% " &amp;amp; SrchTxt &amp;amp; "%'"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 15:05:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645293#M4049</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2011-03-30T15:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645294#M4050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This has worked for me:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim whereClause As String = ("Situsall LIKE" + Space(1) + "'" + Tboxsearch.Text + "%" + "'")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Margo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 18:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645294#M4050</guid>
      <dc:creator>MargoBlosser</dc:creator>
      <dc:date>2011-03-30T18:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645295#M4051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Margo. Unfortunately it did not work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 18:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645295#M4051</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2011-03-30T18:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645296#M4052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Brian - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you find a way to do this?&amp;nbsp; I have a similar situation and thought Type Ahead functionality might do the trick..&amp;nbsp; so I'm investigating how to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know your post was a while ago, thanks for your time&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Donna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 13:58:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645296#M4052</guid>
      <dc:creator>DonnaBest</dc:creator>
      <dc:date>2011-03-31T13:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645297#M4053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Donna- Actually this thread started yesterday. I think you were looking at my "joined date". Anyhow, I have still not found a solution and am still investigating.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Mar 2011 14:39:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645297#M4053</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2011-03-31T14:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645298#M4054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brian -&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps..it worked for me.&amp;nbsp; Not much different from Margo's so I'm curious to see if it works for you as well..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim StreetString As String = UCase(StreetSearch.Text)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim BuildTable As Table = Table.OpenShapefile("C:\Maps\ArcGISExplorer\Intersections.shp")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; searchFilter.WhereClause = "STREET like'" + StreetString + "%'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(I Was at your 'join' date - but I see where to find the post date now - thanks!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Donna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 11:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645298#M4054</guid>
      <dc:creator>DonnaBest</dc:creator>
      <dc:date>2011-04-06T11:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645299#M4055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Donna- &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That did not work for me. It allows me to search for an exact match put does not work for a partila match. ie- I can search for 1234 and find the file but if i try 12 it does not find 1234.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 12:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645299#M4055</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2011-04-06T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645300#M4056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Donna - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good news. It did actually work. I had the old add-in stuck in cache and my updated code didn't go through.&amp;nbsp; Thanks for your help..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; searchCriteria.WhereClause = "File_Numbe LIKE'%" &amp;amp; SrchTxt &amp;amp; "%'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim rows As RowCollection = layer.Table.Search(searchCriteria)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 15:46:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645300#M4056</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2011-04-06T15:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645301#M4057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh that's great!&amp;nbsp;&amp;nbsp; Reminds me to go read up a little on cache - so win-win!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Donna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 11:27:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645301#M4057</guid>
      <dc:creator>DonnaBest</dc:creator>
      <dc:date>2011-04-07T11:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645302#M4058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So my next problems with my Search Add-in..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) The search is case sensitive and I would like it not to be. I was going to use UCase on the search string and the column data. However, since I am using table.search there is no select statement to use UCase on the column I am searching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I would like to use LIKE in the where clause for my columns formatted as numbers. That would mean i need to CAST them as a string. As in the case of the issue abouve, since there is no select statement I can't perform a CAST on the field I am searching.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas are appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 13:42:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645302#M4058</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2011-04-08T13:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645303#M4059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Brian - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry not to respond sooner - I was gonna test a little but haven't gotten there.&amp;nbsp; I'll tell you about the next item I'm struggling with in a sec (smile).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few random thoughts on your issue - I may be missing what you're saying -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&amp;nbsp; So is the File number a text field?&amp;nbsp; I used the UCase in a variable to set the case for the textbox input string, then referenced the variable in the search criteria.&amp;nbsp; - we may be doing this a little differently.&amp;nbsp; I'm using Table.OpenShapefile("path") which may be causing me more troubles.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2)&amp;nbsp; If you have to convert (CAST is convert yes?),&amp;nbsp; can you use the same method - converting in a string to a variable?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3)&amp;nbsp; If the file number is numeric, would &amp;gt;+ or &amp;lt;= in the search string help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My current headache:&amp;nbsp;&amp;nbsp; I need to sort on multiple columns in my datagridview.&amp;nbsp; I'd like the datagridview to only have a few fields from the table and try to sort them that way, but I can't seem to get there from here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure I'm any help, but misery loves company, yes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Happy Monday&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Donna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 14:51:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645303#M4059</guid>
      <dc:creator>DonnaBest</dc:creator>
      <dc:date>2011-04-11T14:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645304#M4060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Donna, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The file number is text as it may contain letters. We just call it a number internally as it has always been called that. I am using a variable in the search and can do a UCase there no problem. My issue is that i need to convert the data i am searching through to UCase also and can not find a way to do that. The reason i need to convert is because this tool I am devoloping will not just search my file numbers but any field from any feature I have selected and that may include different cases for text fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;looking at datagridview.fill I do not see any way to specify the columns. I would actually like to do this as well and was planning on looking into it further. I will let you know what i find.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 15:24:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645304#M4060</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2011-04-11T15:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search (VB.NET)</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645305#M4061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Brian - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found that in order to sort multiple columns I have to use IComparer and found a function.&amp;nbsp; But it only works with String fields, so I have to figure out how to Cast or convert the value of the two numeric fields I want to sort to strings - you've had the same problem yes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Meanwhile, I had a hard time finding how to specify the fields with the datagridview autogenerated.&amp;nbsp; Haven't looked into setting autogenerate = False.&amp;nbsp; Will let you know what I find as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Donna&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2011 19:46:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/search-vb-net/m-p/645305#M4061</guid>
      <dc:creator>DonnaBest</dc:creator>
      <dc:date>2011-04-11T19:46:58Z</dc:date>
    </item>
  </channel>
</rss>

