Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TTOS function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01006691
Message ID:
01006697
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>We have a DTOS function, but what we should use for datetime fields? My colleague was using ttoc and the search expression didn't work. I suggested to use DTOS(TTOD(datetimefield)) and it solved the problem. However, I'm wondering what is the correct approach here?
>
>Thanks in advance.

It all depends of what is the INDEX Expression, If table is indexed by DTOS(DateTimeField) you must use DTOS(). There is no need to use DTOS(TTOC()), because DTOS() works with DateTime type as well as with Date type.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform