Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to store 3 zeros in a numeric field?
Message
From
22/11/2002 11:03:22
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
22/11/2002 10:43:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00725567
Message ID:
00725808
Views:
16
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform