User Tag List

Results 1 to 4 of 4

Thread: How can I delete duplicate hits from a text search

  1. #1
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I delete duplicate hits from a text search

    Hey, folks! Boy, I'm posting lots of questions today! I hope all this helps other people as much as it's been helping me!

    As I continue to work on my text search tool for my company's product documentation, I come upon the next of many challenges: Once I have a complete list of all search hits, how do I delete duplicate items from the second column of a List View object?

    So, presently I have a Fast Loop set up that all the file search hits are placed into the second column of this List View object. My mind thinks that it would then be wise to immediately start another Fast Loop to delete duplicate items before the contents of the List View object is displayed.

    How would I do that?

    I started messing with the Stringsort X object, but I'm not sure if I'm proverbially barking up the right tree with that object. So, I thought I'd cut to the chase and ask the gurus here!

    As always, thank you again for all your help!


    Most graciously...

    RGBreality

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I delete duplicate hits from a text search

    When you fist loop the items in from the search results array, you can add them to a string somehwre. If that string is the same as the current find, then don't add it.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2 DeveloperInstall Creator Pro

    Join Date
    May 2010
    Posts
    536
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I delete duplicate hits from a text search

    So, let me see if I get this right...

    1.) On the "On File While Browsing Loop" condition, I would change a "Global String" to "Read the Current String of the Array"

    Then...

    2.) On the "On Loop 'Search'" condition, I would add another condition which reads, If the "Global String" is "Different" than the "Text of the List View object at Row 0, Column 2" then write that search hit to the List View object.


    If I wrote "Item 2" (above) to read that they were the same (or equal), then ultimately no search hits would be displayed in the List View object...



    Would that be correct?

    (Boy, my brain is turning to mush!)



    RGBreality

    EDIT: Well, it seems I must have gotten it wrong, since it made no difference in my search results! (D'oh!)

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: How can I delete duplicate hits from a text search

    OK, you're not doing this during the searching process. You are looping through the array of search results and checking of the current array search result path <> than the last one, then add it to the listview.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Mr Toast hits the app store.
    By Jeff in forum News
    Replies: 0
    Last Post: 30th April 2012, 12:48 PM
  2. Search function - Search a Word in a couple of strings for example
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 22nd February 2012, 03:51 PM
  3. (Trying to) develop a unified text search...
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 18th June 2010, 09:49 PM
  4. Search inside edit box for text, trigger event.
    By Kingoftaurus in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th May 2010, 04:33 AM
  5. Search and edit sentence in text
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd August 2008, 04:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •