Horse Racing Forum - PaceAdvantage.Com - Horse Racing Message Board

Go Back   Horse Racing Forum - PaceAdvantage.Com - Horse Racing Message Board > Off Topic > Off Topic - Computers


Reply
 
Thread Tools Rate Thread
Old 02-28-2015, 03:52 PM   #1
HUSKER55
Registered User
 
HUSKER55's Avatar
 
Join Date: Jul 2007
Location: MILWAUKEE
Posts: 5,285
Access Question

Does anyone know how to make a mask for a random sized account number.

The account can be a mix of numbers and / or lettors with a hypen stuck in there along the way.

Credit cards for the most part are 16 digits but American Express has changed the grouping of numbers

Working on that one.

thanks!
H55
__________________
Never tell your problems to anyone because 20% flat don't care and 80% are glad they are yours.

No Balls.......No baby!

Have you ever noticed that those who do not have a pot to piss in nor a window to throw it out of always seem to know how to handle the money of those who do.
HUSKER55 is offline   Reply With Quote Reply
Old 02-28-2015, 05:07 PM   #2
Tom
The Voice of Reason!
 
Tom's Avatar
 
Join Date: Mar 2001
Location: Canandaigua, New york
Posts: 112,865
I think you need to have the same number of characters and format every time.

like ##/###/####?
__________________
Who does the Racing Form Detective like in this one?
Tom is online now   Reply With Quote Reply
Old 02-28-2015, 06:19 PM   #3
HUSKER55
Registered User
 
HUSKER55's Avatar
 
Join Date: Jul 2007
Location: MILWAUKEE
Posts: 5,285
I tried that but I also tried the \L thinking that whatever followed would be literal and would serve my purpose but it won't take.

thanks!
__________________
Never tell your problems to anyone because 20% flat don't care and 80% are glad they are yours.

No Balls.......No baby!

Have you ever noticed that those who do not have a pot to piss in nor a window to throw it out of always seem to know how to handle the money of those who do.
HUSKER55 is offline   Reply With Quote Reply
Old 02-28-2015, 07:07 PM   #4
whodoyoulike
Veteran
 
Join Date: Aug 2005
Posts: 3,428
Quote:
Originally Posted by HUSKER55
Does anyone know how to make a mask for a random sized account number.

The account can be a mix of numbers and / or lettors with a hypen stuck in there along the way.

Credit cards for the most part are 16 digits but American Express has changed the grouping of numbers

Working on that one.

thanks!
H55
Don't credit cards start with a certain number e.g., Mastercard - "5", Visa - "4", Discover - "6" etc.
whodoyoulike is offline   Reply With Quote Reply
Old 02-28-2015, 07:40 PM   #5
HUSKER55
Registered User
 
HUSKER55's Avatar
 
Join Date: Jul 2007
Location: MILWAUKEE
Posts: 5,285
there is a built in 16 number format but american express uses a different type. Also I have some local accounts, medical and etc and I was trying to get a general mask.

For some reason the grouping is everything on these accounts.
__________________
Never tell your problems to anyone because 20% flat don't care and 80% are glad they are yours.

No Balls.......No baby!

Have you ever noticed that those who do not have a pot to piss in nor a window to throw it out of always seem to know how to handle the money of those who do.
HUSKER55 is offline   Reply With Quote Reply
Old 02-28-2015, 08:41 PM   #6
Red Knave
dGnr8
 
Red Knave's Avatar
 
Join Date: Aug 2003
Location: Niagara, Ontario
Posts: 3,023
All cards have a method of validation. Some validation methods are public domain, many are not. Any time you accept a card number as input you need to strip all the accompanying non-numerics (spaces, dashes etc.) and apply whatever validation code is necessary. Most cards have check digits. Many Credit cards also have length checks, numeric sequence checks, additional numeric checks etc. to help keep them from being randomly generated.
Here's how to validate a Canadian Social Security number for example :
http://en.wikipedia.org/wiki/Social_Insurance_Number

Lots of information about CC numbering on that interwebnet thingy
http://webstandardssherpa.com/review...dit-card-type/
http://download.cnet.com/Credit-Card...-10557818.html
__________________
.
The great menace to progress is not ignorance but the illusion of knowledge - Daniel J. Boorstin

The takers get the honey, the givers sing the blues - Robin Trower, Too Rolling Stoned - 1974
Red Knave is offline   Reply With Quote Reply
Old 02-28-2015, 08:48 PM   #7
Red Knave
dGnr8
 
Red Knave's Avatar
 
Join Date: Aug 2003
Location: Niagara, Ontario
Posts: 3,023
Quote:
Originally Posted by HUSKER55
grouping is everything on these accounts.
Grouping is only important when the cards are printed. As a programmer, you are only interested in the numbers themselves.
There is no all purpose mask for card numbers. The numbering systems are specific to each card company network.
__________________
.
The great menace to progress is not ignorance but the illusion of knowledge - Daniel J. Boorstin

The takers get the honey, the givers sing the blues - Robin Trower, Too Rolling Stoned - 1974
Red Knave is offline   Reply With Quote Reply
Old 02-28-2015, 10:26 PM   #8
HUSKER55
Registered User
 
HUSKER55's Avatar
 
Join Date: Jul 2007
Location: MILWAUKEE
Posts: 5,285
so as long as all the numbers are present in the right orderit doesn't matter?
__________________
Never tell your problems to anyone because 20% flat don't care and 80% are glad they are yours.

No Balls.......No baby!

Have you ever noticed that those who do not have a pot to piss in nor a window to throw it out of always seem to know how to handle the money of those who do.
HUSKER55 is offline   Reply With Quote Reply
Old 02-28-2015, 10:38 PM   #9
HUSKER55
Registered User
 
HUSKER55's Avatar
 
Join Date: Jul 2007
Location: MILWAUKEE
Posts: 5,285
Thanks for those links. A lot of my questions are answered.
__________________
Never tell your problems to anyone because 20% flat don't care and 80% are glad they are yours.

No Balls.......No baby!

Have you ever noticed that those who do not have a pot to piss in nor a window to throw it out of always seem to know how to handle the money of those who do.
HUSKER55 is offline   Reply With Quote Reply
Reply





Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

» Advertisement
» Current Polls
Wh deserves to be the favorite? (last 4 figures)
Powered by vBadvanced CMPS v3.2.3

All times are GMT -4. The time now is 02:55 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 1999 - 2023 -- PaceAdvantage.Com -- All Rights Reserved
We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program
designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.