Results 1 to 5 of 5

Thread: Mask postal code

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    Ottawa, Canada
    Posts
    181

    Mask postal code

    how do i get mask edit to show the canadian postal code??

    Canadian Postal Code which is of the form: letter,number,letter space number,letter,number

    i've tried
    &#& #&#
    $#$ #$#
    C#C #C#C (this work alright, but it lets me enter all numbers??, it doesn't restrict to just letters, also i want to force uppercase for letter..?? HOW?? )

    thanx a lot

    --770

  2. #2
    Hyperactive Member tpfkanep's Avatar
    Join Date
    Jun 2002
    Location
    South Africa
    Posts
    272
    Create a mask edit box with the following for the Mask property:
    >?#>? #>?#

    > Forces Uppercase
    ? Only allows Letters
    # Only allows Numbers

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    Ottawa, Canada
    Posts
    181
    thank you very much

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2001
    Location
    Ottawa, Canada
    Posts
    181
    hey

    how about a mask edit for an email address validation


    [word]@[word].[word]

    thanx

  5. #5
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    I think the MaskedEdit control is one of the worst controls there is. You'd be better off validating the text in a normal text box. If you search the forum for e*mail AND validate you'll find a number of solutions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width