Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store 3 zeros in a numeric field?
Message
De
22/11/2002 11:03:22
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
22/11/2002 10:43:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00725567
Message ID:
00725808
Vues:
17
But why go to all that trouble when all you need is to display a character. Also, in a select statement you have to order by val(charField). I do most of my work with a SQL database and the rules are differrent there. Just seems a lot easier to have a number and not have to worry about all the rest. Last, there is the size of the column. A char(10) is bigger then an integer.

>You could also build the index like this:
>
>
INDEX ON VAL (CharField) ...
>
>>The exception to your statement is if you have to sort or display the column in numeric order. If the column is character then you have to deal with padding the left of the column with spaces or zeros to make it order correctly. I would rather use a number column and convert it to a character for display if an order is involved.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform