SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3

Thread: Scripting

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Scripting

    I'M trying to write a script where the drivers license number is alphanumeric and changes with each state.for each state,there might be different combinations like 2alpha+3numeric or 4alpha/numeric+1alpha.how could I set up the conditions and what function can be used?
    I'm hoping that I'll get a positive feedback.
    Thanks

  2. #2
    Junior Member
    Join Date
    Jan 2005
    Location
    Reston, VA
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Scripting

    You need to write a custom function which does it.
    you can use basic functions isNumeric(ch) which returns true if its else False.

  3. #3
    Senior Member
    Join Date
    Jul 2002
    Location
    Troy, IL USA
    Posts
    114
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Scripting

    How about a Select Case statement. Your variable for your select case would be the state value, e.g., if state = "CA" then strLicNum = AA123". If you use all 50 states, it will be a fairly long Select Case statement, so try to combine like items in your case.

    Select Case State

    Case "CA", "GA"

    strLicNum = AA123

    Case "NV", "NY", "MN", "NM"

    strLucNum = AAAA1A

    Case Alpha...

    strLicNum = "What ever you want"

    End Select
    Tom B.
    _______________________________
    Automation Team Lead
    Rental Quality Assurance
    Enterprise Rent-A-Car

 

 

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 Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.34%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 02:33 AM.

Copyright BetaSoft Inc.