Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert A DateTime
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01244288
Message ID:
01244292
Vues:
29
I'm still having trouble. I have a DateTime stored as a string in a list.
I want to insert it into a DATETIME column:
CLEAR
CLOSE DATABASES all
USE TestData

sDateTime = .lstInfo.List(.lstInfo.ListIndex, 4)

sCommand = "INSERT INTO TestData (Caption, DateTime1) VALUES ('dd', sDateTime)"
&sCommand

RETURN
I get a Data Type Mismatch



>>Thanks
>>
>>
>
>You are welcome, but... I Forgot to mention that CTOT might create ambiguous dates so the recommendation is to use DateTime(nYear, nMonth, nDay, nHour, nMinutes, nSeconds)
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform