you are using the value from the textbox
however the textbox not necesarrily contains the name of the medicament of the current alarm time
it looks like you have overseen my hint
Questions for you
- how do you get the list (which contains name, description and dosage) of the current alarm time?
- how to get the name of the medicament from that list?
Taifun
What is TinyDB.GetTags?
What is the current alarm time?
It is not a list of all stored alarm times
If you do not know the answer, then let me ask you: what are you doing here:
Taifun
It's comparing the next alarm time with the current time in milliseconds. I don't mean to sound rude, but I really don't have time for questions right now. Tomorrow, they might cut off my electricity because my family couldn't pay the bill. Could you please help me finish as much as possible today?
In the end, it is you who has to be able to explain your blocks...
And if you think, that something is the solution, then the next step would be to test it to find out if it works
My questions contain btw. at the same time their answers...

It's comparing the next alarm time with the current time in milliseconds
As soon as the if statement is true, the next alarm time is the current alarm time
Taifun
Read again my previous answer, I just edited it
Then let us know, what is the current alarm time and show us in the blocks, what you have to put there
Why is it wrong to use TinyDB GetTags there?
Taifun
I still didn't manage to connect the dots I don't know if it's because I have a bad night of sleep or because the deadline is coming but I really don't know the answer to the question...
Oh... Thanks... In the listview screen, I have a button that would delete the selected alarm on the listview, how would I do that?
Do not add further functionality
Now it is time to end this project
Remove that button
You would need more time to add more functionality, you do not have that time anymore
Taifun
Dear MIT Community,
It's been a while since I last reached out, but I wanted to take a moment to express my gratitude. Thank you to everyone who supported me throughout my final year project. Your assistance was invaluable, and I am especially grateful to you, Taifun, for your guidance.
In my country, grades are given on a scale from 0 to 20, and I'm pleased to share that I received a passing grade of 15. This was quite unexpected, especially considering that on the day of my presentation, a bug was discovered that significantly impacted the app's functionality. Despite this setback, everything ultimately worked out in my favor.
Thank you all once again for your support.
Warm regards,
Afonso Milagres.

In my country, grades are given on a scale from 0 to 20, and I'm pleased to share that I received a passing grade of 15
Congratulations
Thank you for letting us know
Taifun