Topic: Some question's
Currently, I have this project and I have three questions. Firstly, in the attached program, I want to select a start date and in the second, an end date. Upon pressing the button, I want the program to calculate all the days from the start date to the end date and place them in the 'mymonth' table in 'Dates', with a column for the day, for example, 1 for Monday, 2 for Tuesday, and so on. The second question, I often notice this sentence: form1.menu := nil;. What is its purpose? The third question is about a strange problem that always occurs to me. After working on a specific form, suddenly when I return to it for testing, I find that the buttons or other elements do not work, and the problem is only resolved when I place another object, for example, another button, and put the code inside it. Sometimes, I have to create multiple instances of the same element for one of them to work!! What is the reason for that??? Thanks in advance."