User Tag List

Results 1 to 10 of 10

Thread: Compare two edit boxes

  1. #1
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export Module
    loglady's Avatar
    Join Date
    Jul 2011
    Location
    Twin Peaks
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Compare two edit boxes

    Hi fellows!

    I made a little .mfa that shows this problem I'm having that is:

    How to compare two edit boxes values and check if they are equal before the end of their lenght or final user input?

    check.mfa

    Thanks!

  2. #2
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,116
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Could you clarify a bit? I looked at this and didn't quite know what was going on.

  3. #3
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export Module
    loglady's Avatar
    Join Date
    Jul 2011
    Location
    Twin Peaks
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Basically it generates a random sequence and you must repeat it (like a "Simon says" game). Each input is written on the first edit box and compared when edit box 1 and 2 have the same length. I want to detect if the player input was wrong before the edit box 1 has the same length of edit box 2.

  4. #4
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,116
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Do you just want the phrases to match, or are you looking for it to match up character for character while typing?

  5. #5
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export Module
    loglady's Avatar
    Join Date
    Jul 2011
    Location
    Twin Peaks
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Character for character so I can punish the player as soon the mistake happens.

  6. #6
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,116
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I've got an example of that I've made. When I'm on my computer ill dig it up.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was a bit confused by the example you posted, heres a really simple version of what i think you might be trying to accomplish?
    http://caloriewizard.net84.net/TEST.mfa

    Just compare the Left$ of the Phrase Edit Box, using the Len$ of the User Typing edit box as the length to the User typing edit box. If its different the user has made a slip up. If its the same then the phrase matches so far.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    May 2012
    Location
    NSW, Australia
    Posts
    405
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was a bit confused by the example you posted, heres a really simple version of what i think you might be trying to accomplish?
    http://caloriewizard.net84.net/TEST.mfa

    Just compare the Left$ of the Phrase Edit Box, using the Len$ of the User Typing edit box as the length. Compare that to the User typing edit box. If its different the user has made a slip up. If its the same then the phrase matches so far.
    I'm not very good at explaining things haha, just have a look at the MFA and hopefully thats what your after?

    OOPS. hit reply instead of edit

  9. #9
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,116
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    correct typing.mfa

    That example should do what you want. Just alter the events however you see fit once the typo is detected.

  10. #10
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export Module
    loglady's Avatar
    Join Date
    Jul 2011
    Location
    Twin Peaks
    Posts
    192
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @macca02: it's exactly what I was looking for!

    @ratty: you gave me a great idea for a game!

    Thanks fellows!
    Really thanks for your help!

Similar Threads

  1. Beta 8 - Moving Edit boxes
    By Kisguri in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 22nd November 2011, 01:54 AM
  2. MMF too small edit boxes
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th December 2007, 11:14 AM
  3. MMF 2 - Tabbing with combo and edit boxes
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 8th December 2006, 01:11 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
  •