Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to compute average of several dates
Message
From
05/11/2004 05:11:16
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00958360
Message ID:
00958419
Views:
21
>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()
Previous
Reply
Map
View

Click here to load this message in the networking platform