User Tag List

Results 1 to 6 of 6

Thread: Finding a string within a string

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Finding a string within a string

    I'm trying to find a piece of string within a string. I'm trying to make my app look through a list and find a match for each entry within a string of text. Like for example, the list goes:

    * urk
    * blarg
    * zoorg

    and the text goes: zoorg was shocked by the appearance the notorious blarg, "urk!", he cried

    I'm using a loop for all this and the string parser object, problem is, it was so long since I used it I've forgotten what functions to use. I'm certain I've done something similiar to this before.

    Grateful for any help!

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding a string within a string

    You can use the string parser 2 object and use the string you are trying to find as a delimiter.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding a string within a string

    oh yeah, good idea!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding a string within a string

    I can't get it to work. I add the text I want it to find in the line of string as a delimiter but I'm not sure which condition I'm supposed to use to find any elements. I've tried several but there is no reaction.

  5. #5
    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: Finding a string within a string

    Quote Originally Posted by Chrille
    I can't get it to work. I add the text I want it to find in the line of string as a delimiter but I'm not sure which condition I'm supposed to use to find any elements. I've tried several but there is no reaction.
    How about the "On Start of Frame" condition to trigger your event?
    Working as fast as I can on Fusion 3

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Finding a string within a string

    I could use anything to trigger the event, but I'm looking for which String Parser Object condition to use to look for the appearance of the delimiter in the line of text. 'Get number of elements > 1' doesn't help unless there are words before and after the delimiter in question, and I'd like for it to work if there was only one word in the line of text.

Similar Threads

  1. Find String in String issues
    By DistantJ in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 13th February 2013, 12:35 PM
  2. String splitting with string parser
    By Sejez in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th February 2013, 05:31 AM
  3. Unable to change a string with the list obect if string contains three periods in row
    By redpandagames in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th January 2013, 03:01 PM
  4. Using String Parser to check for any punctuation in a string
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2012, 11:03 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
  •