Results 1 to 8 of 8

Thread: Special Input masks on text fields

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,147
    Blog Entries
    22

    Special Input masks on text fields

    I've had a few people asking about the best way to handle input masks (pictures in VFP speak).

    There are a few special input masks that I think are worth mentioning as they are time savers.

    Convert all input to uppercase:
    @!

    Accept alpha characters only:
    @A

    Accept alphanumeric:
    @X

    ISO date YYYY-MM-DD:
    @D

    Integer value with maxlength,minvalue,maxvalue:
    @I10,100,1000

    Double value with maxlength,maxdecimals,minvalue,maxvalue:
    @F10,2,0,10000

    Valid email address:
    @E

    Any regular expression starts with a ?. The example below validates an email address:
    ?\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b

    VFP-style picture characters:
    !
    A
    9
    X
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  2. #2
    Member
    Join Date
    Feb 2012
    Location
    Earth.Europe.Germany.Bavaria.Obing
    Posts
    47
    Would it be possible to also have one for TIME entry?
    Maybe something like @T, which would Default to the System Default Format,
    or @Thh:mm:ss,24 for a full "European time" entry.

    wOOdy

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,147
    Blog Entries
    22
    Quote Originally Posted by woody-soft View Post
    Would it be possible to also have one for TIME entry?
    Maybe something like @T, which would Default to the System Default Format,
    or @Thh:mm:ss,24 for a full "European time" entry.

    wOOdy
    Yes that's a good idea.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  4. #4
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,184
    Quote Originally Posted by barrymavin View Post
    Yes that's a good idea.
    I've not known wOOdy (for 20+ years, right?) to have bad ideas, fwiw.

    Hank

  5. #5
    Quote Originally Posted by HankFay View Post
    I've not known wOOdy (for 20+ years, right?) to have bad ideas, fwiw.
    Well said.

    Rolf

  6. #6
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    Hi Barry,

    Can two or more input masks be combined at the same time?
    For example, can you set all characters to upper case and only use alpha characters (numeric characters not permitted)?
    @!, @A

    Cory

  7. #7
    Lianja Team chris.mavin's Avatar
    Join Date
    Feb 2012
    Location
    London UK
    Posts
    29
    Cory,

    You can't combine @ picture functions.
    If you require a new picture character to be added to Lianja, please log this as a enhancement request.

  8. #8
    Senior Member
    Join Date
    Jul 2013
    Location
    Ontario, Canada
    Posts
    658
    Hi Chris,

    Thank you for the confirmation.

    Cory

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us