User Tag List

Results 1 to 4 of 4

Thread: Help with string functions

  1. #1
    No Products Registered

    Join Date
    Jan 2007
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with string functions

    Hi all,

    Can someone help me with the Expression Evaluator so I can do the following:

    Say I have a Counter object. I also have an Active Object with the Alterable String A holding the string: "10, 20, 30".

    Let's say I want to return the second element in the string (20) into the counter. How do I do that?


    JT

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export Module

    Join Date
    Jul 2006
    Location
    Tallmadge, Ohio USA
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with string functions

    I don't have MMF in front of me so I don't remember the exact syntax of the commands but this is how I would do it.
    Use the stringParser object. Set the delimiter to "," in the StringParser. Then set source string in stringparser to your AltStringA from your active. Then set your counter to listGetAt$( "String Parser", 2) <----It's in the list tokenizing section of the StringParser.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with string functions

    Alternatively, you could just use the String Tokenizer object.

  4. #4
    No Products Registered

    Join Date
    Jan 2007
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with string functions

    Thanks guys!
    I tried String Tokenizer, String Parser 2, and Tokens objects. String Parser 2 is great, but I'm going to use the Tokens object, since it allows me to retrieve an element in a string I specify, in a single expression.

    Unfortunately, I can`t find an easy way to SET a tolken in a string, and then set that string back into the source object. Meh.


    Anyway, thanks again!

    JT

Similar Threads

  1. Facebook functions
    By clean_citrus in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 11th July 2010, 04:34 AM
  2. LUA MF functions
    By MattEsch in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd December 2008, 02:55 PM
  3. Using DLL Functions
    By Jaffob in forum Extension Development
    Replies: 18
    Last Post: 27th August 2008, 10:44 PM
  4. LUA return-functions
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 18th March 2007, 09:03 AM
  5. How to use functions in LUA object?
    By Durnus in forum Extension Development
    Replies: 6
    Last Post: 29th October 2006, 02:43 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
  •