User Tag List

Results 1 to 3 of 3

Thread: Splitting a variable into it's unique digits.

  1. #1
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2009
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Splitting a variable into it's unique digits.

    Is there any way I can do this?

    So, if I had a variable with the value 89402 or something similar, I could retrieve the 8, then the 9, then the 4, then the 0 etc.

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    + Whenever...
    -> Start loop "GetChars", len(str$( value )) times

    + On loop
    -> CurrentChar = mid$(str$( value ), LoopIndex("GetChars"), 1)

  3. #3
    Clicker Multimedia Fusion 2iOS Export Module

    Join Date
    Apr 2009
    Posts
    157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    + Whenever...
    -> Start loop "GetChars", len(str$( value )) times

    + On loop
    -> CurrentChar = mid$(str$( value ), LoopIndex("GetChars"), 1)
    Thanks very much. This worked.

Similar Threads

  1. Splitting a value
    By Asholay in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 22nd December 2012, 03:35 PM
  2. Splitting big images into smaller ones
    By ElectricMaster in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th March 2012, 09:12 PM
  3. Global variable = alterable variable
    By Jibs in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2011, 08:54 PM
  4. TGF_MMF Notion Variable, “Système Variable”.
    By SpringUp in forum File Archive
    Replies: 2
    Last Post: 13th March 2009, 12:43 AM
  5. String Splitting?
    By Iharmi in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 20th June 2008, 05:32 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
  •