RIAS
asked on
How to mask a string
Hello,
For a credit card need to throw a message box masking the card number and only showing the last 4 digits.
Any Suggestion?
Cheers
For a credit card need to throw a message box masking the card number and only showing the last 4 digits.
Any Suggestion?
Cheers
ASKER
Hi,
I am using vb.net 2005 windows version.I have found a solution for valid card number,just need to masking the number and pop up last 4 digits
Cheers
I am using vb.net 2005 windows version.I have found a solution for valid card number,just need to masking the number and pop up last 4 digits
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Cheers!!
You may also need extra logic to test whether or not the number is a valid credit card number. Those rules vary depending on card brand but can be found with a little Googling.
Another approach if you don't really care about first verifying that what you're about to mask is actually a credit card number is to create an extension method that does the masking for you. This might not be an option for you since your question is tagged as both Visual Basic Classic and Visual Basic.NET. What platform are you actually using?