Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Padding with zeroes
Message
De
17/09/1998 07:47:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00137666
Message ID:
00137718
Vues:
27
>In one of the textboxes a receipt number is entered. Currently it is something like H5769. To make provision for future larger numbers ie T65789 I want to pad the number H5769 to H05769. Do I put the code to do this in the LostFocus property?
>
>As a matter of interest what would the InputMask look like?
>
>Thanks.
>
>Petrus.
Petrus,
You can try this in lostfocus
*lostfocus
this.value = substr(this.value,1,1)+;
        padl(val(substr(this.value,2)),5,"0")
Inputmask would be something like "A99999" and format "!".
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform