Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem to compare date+time with System datetime
Message
 
 
To
22/07/2013 18:23:23
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01579024
Message ID:
01579025
Views:
50
>Hello comunity
>
>I have build this code to compare the date and time on my document with my System datetime(), and is is less than my System datetime the rule don´t save the record:
>
>Please see my code in jpg
>
>The problem thas is not work, the error is :
>Line 10
>Function argument value, type, or count is invalid
>
>someone could give me help.
>Many thanks
>Luis Santos

Can you debug your code and verify values for every part? Also, they need to be numerical values, not character. So, you may want to cast each of them to Integer before sending to DATETIME function.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform