Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Day # of year?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01182887
Message ID:
01183461
Views:
18
Your problem is that the field is probably datetime data type and the code for that would be;
* Convert the Datetime value to a date value
ldDate = DATE(YEAR(MyTable.MyField),MONTH(MyTable.MyField),DAY(MyTable.MyField))

lnDayNumber = ldDate - Date( YEAR(ltDate), 1, 1) + 1
>error"Funcation arguments value or type or count is invalid"
>
>But when i write ldDate = date() no problem.
>I am using vfp9 sp1.
>thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform