Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formating Fields
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00054260
Message ID:
00054263
Vues:
31
>How can I format a character field for, if the field be SPACE(5), when I
>enter "1", be formated to "00001" or "222" be formated to "00222" ?
>
>Thanks,
> Alano Teles
> lano@programmer.net
>
>Obs : Sorry about my English...

Something like

this.value = REPLICATE("0",FSIZE(myfield) - LEN(ALLTRIM(this.value)) ) + ALLTRIM(this.value)

in Valid() event probably might help.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform