Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax of Date Time Stamp
Message
 
 
À
08/04/2010 13:55:58
Steven Dyke
Safran Seats USA
Texas, États-Unis
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 SP1
OS:
Windows XP
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01459379
Message ID:
01459382
Vues:
46
>I am trying to fire SPT to change a date field in an iSeries(AS400) file but I get an error that the date time syntax is wrong.
>
>
>
>LOCAL p1
>p1 = "04/07/2009 06:38:18 PM"
>
>teststring = "Update" +;
>" webprddt7.drawmfai Set datstmp = '" + p1 + "' Where recseq = 81478"
>
>
Did you try using parameter approach?
LOCAL p1
p1 = datetime(2009,4,7,18,38,18) &&  "04/07/2009 06:38:18 PM"

teststring = "Update" +;
" webprddt7.drawmfai Set datstmp =?m.p1 Where recseq = 81478"
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform