Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

increment time using loop

Status
Not open for further replies.

Pork

Technical User
Sep 24, 2002
5
CA
Hello:

I am modifying a scheduler application. I have a window that has an imbedded datawindow on it that captures start time and end time. I have added two controls to the window to capture. Number of appts(if you want to create multiple appointments) and a field to capture the duration of appointments. All the values captured on this window are being passed back to a function using a structure. The function then creates the appointments. What I need to know is...how would I do a loop to increment the start and end time based on the appointment duration entered in the window I described?

Any help would be extremely appreciated...

Thanks,

Alex
 
Your loop is based on the number of appointments entered. You can use the 'RelativeTime' method to get the starting/ending times of appointments based on their duration. Remember the RelativeTime uses seconds to increment so you may have to convert whatever your duration is.

Matt

"Nature forges everything on the anvil of time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top