Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Leading zeros
Message
De
11/09/2000 15:07:38
Tom Gahagan
Alliance Computer Solutions
Thomaston, Georgie, États-Unis
 
 
À
11/09/2000 14:13:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00414999
Message ID:
00415059
Vues:
24
Fred....

>>There is no difference between a value of 123 and 000123 if the field is numeric. It's all in the "presentation" of that value.

Understood... thus my second response to Tyler. But Tyler does have a slight problem if he wishes to "present" the leading zero data. Not in the actual presentation...as that is a matter of the format code I mentioned in my first response...rather it is a matter of how to "save" the number of zeros.

I guess there are a couple of ways (off the top of my feeble head) to do this.... have an extra numeric field that holds the number of zeros and write that info to the file and use that info plus the original field in the presentation. Or convert the field to a string and save in that format. I'm sure that others can think of better ways.
Tom Gahagan
Alliance
Computer Solutions

"Music, like sex, is much too important to be left to professionals."
Robert Shaw
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform