Claudiusjerry
New member
- Local time
- Today, 18:24
- Joined
- Jul 15, 2024
- Messages
- 23
I am writing a system with a timer function for each classroom, when the time is up, I implemented a speaking function that calls
speak "Room" & Id & "is calling!"
and pops up a warning window (vbexclamation) that requires you to press OK to finish the alerting process.
If the data is not deleted, the alerting system will call again.
There is a possibility that all the classrooms may be up at the same time.
When classroom 1 speaks and pops-up window and the user clicks OK, classroom 2 alerts and pops-up window, and then classroom 3, classroom 4......
The problem is, that the system refreshes too fast. The alerting pattern works like this:
My pattern: Classroom 1 -> 2 -> 3 -> 1 -> 2 -> 3 -> 1 -> 2 -> 3.......
Correct pattern: Classroom 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7-> ...... -> 15 AND THEN -> 1 -> 2 -> 3 -> 4......(If no data deleted)
The system also contains a rule that if the classroom data is not cleared, that specific classroom will alert again after 30 seconds (I counted).
To clear the data need to double-click the Classroom ID box.
This results in an infinite loop between the first 3 classrooms, classroom 1 alerts and pops-up windows, and when I click OK, classroom 2 speaks and pops up, and then Classroom 3, while the speaking function is calling, I cannot modify or click anything in the system. which my system will be stuck in a 1->2->3 loop and I cannot alert classroom 4-15 and cannot clear data by double click the Id box.
What can I add to the function so that it waits until all classrooms are alert and then returns to classroom 1, together with sufficient responding time for me to clear data?
This is my speaking and window pop-up function.
The concept of the function is Tekst31 = "" when time is running, Tekst31 = "alarm" when time is up, which triggers the function to call and pop-up windows.
Box 22 (Keuzelijst 22) is responsible for showing the ending time, which will become null after clearing data and trigger Tekst31 to return to "" and stop the function of room ID,
as I tested before, clearing classroom 1 will only clear row 1 data, and other classroom functions are still running and able to alert and pop up.
This is the double-click function for clearing data.
Thanks a lot.
speak "Room" & Id & "is calling!"
and pops up a warning window (vbexclamation) that requires you to press OK to finish the alerting process.
If the data is not deleted, the alerting system will call again.
There is a possibility that all the classrooms may be up at the same time.
When classroom 1 speaks and pops-up window and the user clicks OK, classroom 2 alerts and pops-up window, and then classroom 3, classroom 4......
The problem is, that the system refreshes too fast. The alerting pattern works like this:
My pattern: Classroom 1 -> 2 -> 3 -> 1 -> 2 -> 3 -> 1 -> 2 -> 3.......
Correct pattern: Classroom 1 -> 2 -> 3 -> 4 -> 5 -> 6 -> 7-> ...... -> 15 AND THEN -> 1 -> 2 -> 3 -> 4......(If no data deleted)
The system also contains a rule that if the classroom data is not cleared, that specific classroom will alert again after 30 seconds (I counted).
To clear the data need to double-click the Classroom ID box.
This results in an infinite loop between the first 3 classrooms, classroom 1 alerts and pops-up windows, and when I click OK, classroom 2 speaks and pops up, and then Classroom 3, while the speaking function is calling, I cannot modify or click anything in the system. which my system will be stuck in a 1->2->3 loop and I cannot alert classroom 4-15 and cannot clear data by double click the Id box.
What can I add to the function so that it waits until all classrooms are alert and then returns to classroom 1, together with sufficient responding time for me to clear data?
This is my speaking and window pop-up function.
The concept of the function is Tekst31 = "" when time is running, Tekst31 = "alarm" when time is up, which triggers the function to call and pop-up windows.
Box 22 (Keuzelijst 22) is responsible for showing the ending time, which will become null after clearing data and trigger Tekst31 to return to "" and stop the function of room ID,
as I tested before, clearing classroom 1 will only clear row 1 data, and other classroom functions are still running and able to alert and pop up.
This is the double-click function for clearing data.
Thanks a lot.