Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mask part of SSN
Message
From
19/05/2009 18:56:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/05/2009 18:09:41
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01400837
Message ID:
01400842
Views:
107
>Anyone have any ideas on how to display the last 4 digits of the SSN in a textbox and still store the complete number? We have the SSN in the database but management wants to mask it like this:
>
>***-**-1234.

You'll have to split that into three textboxes, and set .PasswordChar="*" to the first two. On .lostfocus() of each put the string together, on .refresh() split it into groups and put each group into .value of the textbox where it goes. Set .maxlength to 3, 2 and 4. You may make this a container, with two little labels to display the dashes between the groups, and have that container as a class, so it can be used wherever you may need it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform