+ Reply to Thread
Results 1 to 2 of 2

mask

  1. #1
    Tom
    Guest

    mask

    Hello,

    I have got some string:
    test = "12aaa-cc-xxx"

    and I need it compere with this mask:
    mask = xxxx-xxx-xx-00

    where x menas anything and 0 is needed

    how can I do somethnig like this:
    if test correspond mask then is True

    Tom



  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello Tom,

    If you are only checking the last two characters of the string, you can test it this way.

    If Right(Test, 2) = "00" Then Result = True


    Hope this helps,
    Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1