User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Letters and numbers in row

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    472
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Letters and numbers in row

    I have two edit boxes.

    1.max 15 letters in the box
    2.numbers

    add button

    then i should do this, sort in listbox as shown below

    a 100
    abc 300
    abcdeft 500

    like "abcdeft" is 7 letters - 15 = 8 spaces between them,
    so the numbers is the same row no matter what you whrite in the box.

    Can someone help me how to do this?

    Thanks

    letters.jpg

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    472
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    How do I add " " 8 emthy spaces in string?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,363
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    To align the numbers to the right, you'll need to run a fastloop the numbers of times needed. Run the loop 15 - length(string) times. In the case of abcdeft that would make it loop 8 times. On each loop you add " " to the string. Then, you add the number.

  4. #4
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,341
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    LETTERS + right$( "FIFTEEN_SPACES" + NUMBERS, 15 - len( LETTERS ))

    I couldn't write it because the forums remove whitespace from posts, but "FIFTEEN_SPACES" should literally be a string containing fifteen space characters.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    472
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Add button = Start "loop" 15 - value("Length") times = Edittext$( "Name" ) + string$( "String" ) + Edittext$( "Numbers" )
    On loop "loop" = Set alterable String " "

    I know this won't work right but how do you use 'On each one of "String" name "loop"'?

    I only get one " " space between them?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    472
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I made a example I really need this, But It does'nt work with my spaces!

    http://mrjgames.com/loop.mfa

  7. #7
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,341
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    472
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Super. this is cool thanks

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    472
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    MuddyMole - when I run your example it works fine. But when I copy the code into another project it doesn't work anymore!!!!

    I know it's same code...

    Capture.JPG

  10. #10
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,341
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    That's not a monospaced font that you're using. You need to use a font where all characters (including spaces) are exactly the same width - in most fonts, a "W" character is very much wider than an "i" character, for example.
    In my example, I changed the font to "Courier", but there are plenty of others to choose from (I believe "Consolas" and "Lucida Console" come pre-installed on Windows systems).

Page 1 of 2 1 2 LastLast

Similar Threads

  1. caesar letters not numbers
    By bubba_damage in forum Fusion 2.5
    Replies: 2
    Last Post: 29th December 2017, 03:14 PM
  2. Replies: 12
    Last Post: 18th January 2016, 09:58 PM
  3. Replacing numbers with letters
    By Decal in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 24th November 2010, 08:34 PM
  4. Replacing numbers with letters:FILE:
    By Decal in forum File Archive
    Replies: 0
    Last Post: 23rd November 2010, 08:43 PM
  5. unknown letters and numbers compare two vals?
    By bubba_damage in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 8th October 2010, 10:02 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
  •