Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Empty Datetime from MySQL and VFP table -- Mismatch
Message
From
27/06/2005 15:42:09
 
 
To
25/06/2005 05:55:59
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
SAMBA Server
Database:
MySQL
Miscellaneous
Thread ID:
01026419
Message ID:
01026846
Views:
17
Marcia, Thanks for your reply.

I am not sure if the problem is due to format the data is stored in these datetime fields in FoxPro and/or MySQL. However, after I retrieve the data from MySQL (using SQLEXEC()), these fields are not NULL. (In fact, none of the fields in my FoxPro table can accept NULL values.) So, the data in these fields is empty (and not NULL). Therefore, even the code with NVL() returns .F.
?NVL( SQLResult.ProcDT, {} ) = NVL( iol_act.ProcDT, {} )  
.F. 
*
* TTOC still returns .T. 
?TTOC(NVL( SQLResult.ProcDT, {} )) = TTOC(NVL( iol_act.ProcDT, {} ))
.T.
At present, I am using TTOC() to convert DateTime field before comparision, and it seems to be working with empty as well as not empty datetime values.
- Ravi Taxali
Visual FoxPro Made Simple An excellent book for beginners as well as experienced programmers
Never Forget Again. Setup Email Reminders.
Previous
Reply
Map
View

Click here to load this message in the networking platform