Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime Native Format?
Message
De
29/09/2016 14:09:54
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01641508
Message ID:
01641512
Vues:
62
>>>I'm wanting to store a datetime as compactly as possible. When you create a datetime field in a table, it takes 8 bytes but if you do a TTOC(), it takes 20 characters. Is there a way of getting that 8 byte value from the DBF and easily convert it back and forth?
>>
>>I don't understand what you're asking. Storing as DateTime is the compact way.
>>
>>Tamar
>
>I should have been clearer - I need to store this as a text field in a lookup table holding all my settings. I was hoping to store it in a few characters without making up my own scheme.

TTOC(DATETIME(),1)

is the string format of a time to have it index~ and sortable.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform