User Tag List

Results 1 to 3 of 3

Thread: Re: Searching through a list or type of box...

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Searching through a list or type of box...

    ...for a particular string?


    Lets say you have the text

    "bacon and eggs" in a editbox,

    (or
    "bacon
    eggs" in a listbox.)

    and you want the app end if "bacon" is in the editbox (or listbox) when the timer = 1 second.

    is there a way to do this? (using an extension or something)

    -----------------------
    Timer = 1 second
    +*magic condition here*

    Then end app
    -------------------------



  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Searching through a list or type of box...

    So basically, you want to check to see whether any part of the edit box contains the string of characters "bacon"?

    It would be possible to do this using a fastloop, taking Mid$(loopindex, 5) of the Edit object repeatedly and checking against "bacon", but I'm sure you could use an extension to do it in a neater way. Perhaps the String Parser 2.

    Doing it in a listbox is far easier - set a counter to (FindStringExact("List Object", "bacon", -1)). This expression returns -1 if the string could not be found, and the line number the string was found on if it was. Then you'd just need to check whether the counter was 0 or above before you ended the frame.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Searching through a list or type of box...

    That second thing you said is EXACTLY what I was looking for.

    Thanks sooo much!

Similar Threads

  1. How to make one type of enemy faster than another type?
    By Bittergamer1886 in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 11th May 2012, 04:50 PM
  2. Re: Searching a list for a certain string...
    By ClickerGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th December 2009, 06:16 PM
  3. Searching objects
    By im2famous4u in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 11th March 2008, 07:55 PM
  4. Searching for extensions
    By Superior in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 17th January 2008, 06:52 AM

Posting Permissions

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