User Tag List

Results 1 to 8 of 8

Thread: Edit Box disable invalid characters

  1. #1
    No Products Registered

    Join Date
    May 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Edit Box disable invalid characters

    Hello

    How to disable invalid characters like "\/:*?"<>" ?

    I need to use a Edit Box to save the player name as file.

    Greets

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit Box disable invalid characters

    I'll post an example in the archives for you

    EDIT: http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=144871#Post1448 71

  3. #3
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit Box disable invalid characters

    I've added a function to do that for the next version of the Formatted object.

  4. #4
    No Products Registered

    Join Date
    May 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit Box disable invalid characters

    thank you!

  5. #5
    No Products Registered

    Join Date
    May 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit Box disable invalid characters

    Hey

    This code seems perfect for what I'm trying to do but...

    I will just allow A to Z, but now I've a question.. How to remove the last typed character?

    For example:

    Player name: Scorpion#

    The last character is #

    I need to remove the last character to fix my save progress on my game...




  6. #6
    No Products Registered

    Join Date
    May 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit Box disable invalid characters

    Left$(Edittext$("Edit Box"), (Len(Edittext$("Edit Box"))-1))

    Thanks to Ricky123 on Click Chat


  7. #7
    No Products Registered

    Join Date
    May 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit Box disable invalid characters

    ah

    but the caret return to the start...



    someone have suggestion how to fix?

    my source:

    http://zero3020.googlepages.com/Application.mfa

  8. #8
    No Products Registered

    Join Date
    May 2009
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Edit Box disable invalid characters

    Ricky123 again helps...

    =)

    Edit Selection "extra add" to move the caret to the end...

    thanks!

Similar Threads

  1. Removing characters from Edit Box/String
    By Jaklar in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 7th May 2013, 03:05 PM
  2. Register Characters Typed in Edit Box
    By Top_of_the_Temple in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 13th December 2012, 10:08 PM
  3. Count number of characters in a text edit?
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th June 2012, 01:33 PM
  4. Disable invalid characters example
    By RickyRombo in forum File Archive
    Replies: 0
    Last Post: 22nd May 2009, 04:07 AM
  5. Edit object makes invalid character when saving
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st July 2008, 08:08 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
  •