I wrote two programs. When I use the button to click, I can get the result I expected. But when I use screen initialization, I cannot get the same result as button click. Here I want to use screen initialization.
Please tell me what is the functional difference between screen initialization and button click?
The problem is that you expect the global variable songList to have the results from the TagList event before the TagList event had a chance to fire.
To correct this, move the foreach item list songList loop out of Screen.Initialize and into the .TagList event, at the bottom, after assignment into the global songList.
I am really so sorry to waste your time.
I do really ignore the samples you prepared for me.
I get the result what I need.
Thank you very much for your reply and patience!