I have a very simple question for you guys. How do I get a credit card number and format it to hide the numbers when I print a report like xxxx-xxxx-xxxx-1234.
As to the "How do I get a credit card number" question, that depends on a lot of other variables:
* Is the number being manually entered by a cash register operator?
* Is the number to be automatically read in via some attached credit card reader?
* How?
We need more information to help you on this one.
However, as to how do you change its format for printing, that one is easy.
You originally have a number such as:
m.cCredCrdNo = "6789-4567-1212-1234"
m.cRightFour = RIGHT(m.cCredCrdNo, 4) && "1234"
m.cPrntCredCrdNo = "xxxx-xxxx-xxxx-" + m.cRightFour
Good Luck,
JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.