Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime Syntax
Message
 
À
04/05/1998 11:20:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00096720
Message ID:
00096747
Vues:
15
Ken,

TTOC() might work better than DTOC(). You can also use ? to indicate to FoxPro that it should pass the value of a variable to ODBC rather than the variable itself. Try this:

cString="UPDATE myTable SET dt_Start = ?m.DateTimeVar ..."

>I'm trying to send a datetime value via ODBC to an Access table. The expression is embedded in a string like this:
>
>cString = "UPDATE myTable SET dt_Start = ' + DTOC( DateTime variable ) + '...rest of the string'
>
>nRslt = SQLEXEC( nHandle, cString )
>
>How do I format the string?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform