Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Leading Zeros
Message
 
 
À
19/09/2001 11:41:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00558362
Message ID:
00558367
Vues:
20
>Good Day all!
>
>My question is this...I have a field in my table called OrderId it is 7 characters long. If an id is entered that is three characters (ex. 123) I would like to have it replaced with leading zeros to the max of C(7) (ex. 0000123). Is this possible to do in the table designer..input mask or format fields? Any other suggestions?
>
>Thanks for your time!

You can do it in the valid of atextbox
This.Value = PADL(This.Value, 7, "0")
I'm curious why do you allow to enter key field instead of generating it internaly?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform