Hi All,
I am using VB6. Iam new to VB6
I am new here looking for a solution to test for starttime and endtime of a time/day window. The users will input days of the week i.e. mon-Sun and the Starttime and Endtime for each day selected. Example a user can select Fri - Sun checkboxes and in each day choose a starttime of 07:00 and endtime 23:00 so the form will look like (no enetered values for Mon - Thurs) - System Offline settings forms
Checkbox Starttime textbox EndTime textbox
-------------------------------------------------------------------------
X Friday 07:00 23:59
X Saturday 00:00 23:59
X Sunday 00:00 19:59
Monday
Tue
Hence I want a counter to start counting down to when the system is about to go offline. Say on Friday at 06:00 the display counter will say " Time to OFFLINE 01:00:00 etc.
Hence my problem is on Monday how can i test for friday and have the counter start counting.
How will i design a do Loop to test for this condition ie. Do while xtime is not friday <starttime>
loop
I have done most the form and using GetSetting and SaveSetting for the values
The only problem it the timer loop to test for what user has selected and do the counter
Please help
Many thanks
Benitez