Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating work days
Message
From
29/02/2000 09:47:17
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00338999
Message ID:
00339073
Views:
18
Hullo Michael,

I did this (a long time ago) using a table of dates containing
all holidays (entered by users),
all Saturdays and Sundays up to last holiday date entered,
which was then sorted and indexed on the date.

Then by Seeking start and end dates, with near on, in the table, the difference between the two recno()'s deducted from the total days between the start and end dates gave the working days. It was relatively quick.

Hope this is of some use.

John
Previous
Reply
Map
View

Click here to load this message in the networking platform