Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to compute average of several dates
Message
De
05/11/2004 05:11:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00958360
Message ID:
00958419
Vues:
22
>how to compute average of several dates ?
>
>i've tried with avg() and average but i am getting an error ' no a numeric value' of course dates not numeric value . how can i do this ?
>
>TIA
CREATE CURSOR avDate ( dd D DEFAULT DATE()+RAND()*100)
FOR k=1 TO 10
 APPEND BLANK
NEXT
BROWSE
SELECT AVG(DD-{^1900/01/01})+{^1900/01/01} FROM ALIAS()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform