Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mask part of SSN
Message
De
19/05/2009 18:56:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/05/2009 18:09:41
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01400837
Message ID:
01400842
Vues:
106
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform