User Tag List

Results 1 to 4 of 4

Thread: how to require min. 3letters in EditBox ??

  1. #1
    No Products Registered

    Join Date
    Jul 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to require min. 3letters in EditBox ??

    hi

    i started a project where at the start the player can add his toon name inside an edit box and then hit the create button , it then create an ini file with the name selected
    using FileObject...
    +Button Create Clicked
    -Edittext$( "Edit Box" )+(".ini")

    my problem is its for a mmo , and as it is the player could create a toon named with only 1 letter , even just using a space
    i know i can use ..
    Edittext$( "Edit Box" )<> ""
    but it doesnt help cos they still can use 1 letter,

    is there any way to make it so it require at least 4 letter inside the edit box to allow the ini to be created ? and maybe lock the use of all symbols like (*&?%$#.,") ?

    any ideas would be very apreciate
    oh and i have the regular mmf2 , not dev

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    California, USA
    Posts
    1,247
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: how to require min. 3letters in EditBox ??

    Use the Compare Two General Values (Under "Specials") to get the length of the edit box text

    Button Clicked
    + Len( Edittext$( "Edit Box" )) => 3

  3. #3
    mojofltr
    Guest

    Re: how to require min. 3letters in EditBox ??

    Try using this condition:

    Button Create Clicked
    Len(Edittext$("Edit Box"))>=3

    //edit//
    Oops, DT beat me to it.

  4. #4
    No Products Registered

    Join Date
    Jul 2010
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to require min. 3letters in EditBox ??

    that was some fast answers xP
    thx alots guys , it worked right away

    now i only got to figure out if i can block the symbols from beeing use wich i honestly didnt try to find yet xP i though bout it while doing my post lol

    actually..i think i will not block symbols , i used them in few games that allow it and enjoyed it,problem solve xP , will just block space and add maximum letters

Similar Threads

  1. Almost All New Extensions Here Require
    By RickyRombo in forum Beta Flash Extensions
    Replies: 0
    Last Post: 13th April 2011, 10:21 PM
  2. Hi-Score require name
    By Kracker in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th January 2010, 07:13 AM
  3. Require Restart
    By AsmDev in forum Install Creator and Patch Maker
    Replies: 4
    Last Post: 29th September 2009, 12:04 PM
  4. Lua+ on require
    By MechatheSlag in forum Extension Development
    Replies: 12
    Last Post: 14th November 2008, 01:06 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
  •