It’s an example of modular programming. Only one function populates the listbox. That allows you to swap out the listbox for some other presentation without having to change a bunch of code. Granted, in this simple example, it’s overkill.
No, that’s not what I’m saying. It’s modular in that everybody just stuffs stuff into ToDoList and then calls UpdateToDoListBox (which should really be called DisplayToDoList). The code in UpdateToDoListBox can be modified as needed and the rest of the program is unaffected.
I’m running on the latest version of Windows 10 version 1904.746. IM using XOJO 2020r1. All I get is one page output:
Date: Sunday, January 17, 2021 5:31:47 PM
Thanks Emile, Your second suggestion worked great! Just a Note: You know Robert Browning is given credit for the phrase “Grow old along with me! The best is yet to be, the last of life, for which the first was made.”
Personally, I think he was either delusional or high on something. I’ve found that memory may be the first, but not the last to go! Seize the day! Of course I’m sure there are those who would say I’m not old enough to make such observations!