Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating a Schedule Conflict
Message
From
05/08/2004 19:04:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Calculating a Schedule Conflict
Miscellaneous
Thread ID:
00931181
Message ID:
00931181
Views:
63
Hi All,

Trying not to reinvent a wheel here. I am creating an app for a child learning center. Each child can be entered into a several programs that the center offers. Each program has a schedule, i.e. PT1 meets M,W,F from 10:00 to 10:45, OT2 meets M to F 9:30 to 10:00. I need to figure out if there is a conflict between the programs that are scheduled for a child. I have a child table and a program table. The program table has logical values for each day of the week for when it meets and a from and to time that it meets. The number of programs a child is assigned to varies for each kid. A cross table contains a child id and program id. Any ideas of how to efficiently code whether there is a conflict in a childs schedule? I would need to know whether there is a confilct as well as which two or more programs conflict. Ideally it would be best to account for possibilites of any start and end time, i.e I don't want to make an assumption the start and end times are in 15 or 30 minute increments. Any ideas of to go about this?

Thanks in advance.

Peter
Next
Reply
Map
View

Click here to load this message in the networking platform