Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Day # of year?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01182887
Message ID:
01183461
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform