|
02-28-2015, 03:52 PM
|
#1
|
Registered User
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.
|
|
|
02-28-2015, 05:07 PM
|
#2
|
The Voice of Reason!
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?
|
|
|
02-28-2015, 06:19 PM
|
#3
|
Registered User
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.
|
|
|
02-28-2015, 07:07 PM
|
#4
|
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.
|
|
|
02-28-2015, 07:40 PM
|
#5
|
Registered User
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.
|
|
|
02-28-2015, 08:41 PM
|
#6
|
dGnr8
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
|
|
|
02-28-2015, 08:48 PM
|
#7
|
dGnr8
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
|
|
|
02-28-2015, 10:26 PM
|
#8
|
Registered User
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.
|
|
|
02-28-2015, 10:38 PM
|
#9
|
Registered User
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.
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|