Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27443

VS 2008 String mask - Last 4 SSN

$
0
0
New to VB.net . I need to mask a string that contains a SSN (123-45-6789) to the last 4 digits. I would link the output in this example ***-**-6789 . Need to replace the first 6 chars (no matter what they are) with the literal "***-**".
I tried
StringSSN = Replace(StringSSN, , "***-**", 1, 6, CompareMethod.Text)
but this will not pass compiler. Can you wildcard the Find parameter?
Thanks. B

Viewing all articles
Browse latest Browse all 27443

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>