User Tag List

Results 1 to 4 of 4

Thread: find string in string

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Sevennemesis's Avatar
    Join Date
    May 2012
    Location
    Québec
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile find string in string

    I would like to know if it is possible to find a word from a sentence with the object "editbox"



    editbox--> [ ]

    text --> [ this is a example ]

    counter --> 0

    -------------------

    editbox--> [ this ]

    text --> [ this is a example ]

    counter --> 1

    -------------------

    editbox --> [ example ]

    text --> [ this is a example ]

    counter --> 1

    -------------------

    editbox --> [ is a ]

    text --> [ this is a example ]

    counter --> 1

    -------------------

    editbox -- [ another ]

    text --> [ this is a example ]

    counter --> 0

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export Module
    ChrisBurrows's Avatar
    Join Date
    May 2011
    Location
    Tasmania, Australia
    Posts
    622
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yes, using the Find String in String function. It returns the numeric position of a substring within a larger string. If the substring cannot be found, -1 is returned.

    Find(a, b, c)
    a = The source
    b = The query
    c = The starting character of the search

    For example, Find("This is an example.", "exam", 0) returns 11 because "exam" begins at the 11th character in "This is an example.".
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Did you even try to figure this out for yourself?

    From the MMF2 help file:

    Find String in String
    returns the 0-based index of a sub-string in the string. Parameters = string to look into, sub-string to look for and index of the first character to start the search from. Returns -1 if the sub-string is not found in the string.


    Counter = Min(1, Find( TEXT, EDITBOX, 0)+1) * Min(1, Len( EDITBOX ))

  4. #4
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Sevennemesis's Avatar
    Join Date
    May 2012
    Location
    Québec
    Posts
    235
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow! thank you to you! succeeded!!

    @MuddyMole
    yes I looked, but I managed to make it work with only the first word!, Now, I can find anything in my engine filter that I just created!

    thank you very much

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. find string
    By daniele in forum File Archive
    Replies: 0
    Last Post: 8th September 2011, 07:29 PM
  3. Help Find string
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th December 2009, 01:57 PM
  4. Where to find string.mfx?
    By DJ_Wild in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd November 2007, 09:20 AM
  5. Where i can find string.cox ?
    By lorddongle in forum Extension Development
    Replies: 7
    Last Post: 22nd March 2007, 09:44 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
  •