Home Forums WinForms controls Other WinForms controls Validation Provider: Bad Regex?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18500 |

    I assigned a WinTextBox to use a regex validation through the validation provider, but it doesn’t seem to work correctly.

    The regex format name I used is “Date (DD/MM/YYYY)”.

    When testing the validation in the Validation Configuration dialog or in the executing UI it fails for for any date where the day digits are > 12.

    It doesn’t seem to matter what the month or year is, but if the day portion is > 12 it fails validation.

    What am I doing wrong.

    FYI:  This is in VS2008. 

    Thanks. 

     

     

     

    Imported from legacy forums. Posted by Paul (had 3340 views)

    User (Old forums)
    Member
    Post count: 23064

    Have you tried lowercase? Normally, date format should be in lowercase, except for the month part, which should be in uppercase, since lowercase means minutes instead of months.

    http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx

     

    Imported from legacy forums. Posted by André (had 361 views)

    User (Old forums)
    Member
    Post count: 23064

    You misunderstood.  “Date (DD/MM/YYYY)” is not the regex string.  It is the name of a predefined format that came with the XCeed install.

    Imported from legacy forums. Posted by Paul (had 387 views)

    User (Old forums)
    Member
    Post count: 23064

    Sorry for the misunderstanding.

    I tested this here, and it works fine.  Can you post a sample project reproducing the issue, so we can investigate this further?

    Imported from legacy forums. Posted by André (had 4046 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.