Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Forms & Form designer
Title:
Listbox and Array Property and where to do what
I have a listbox using a form array property. I create and dimension the array property in the form's Init method and then populate it in a command button on the form. This works fine. The problem is that I want the listbox to populate when the form is called; I used the command button just to see if it would work as I was frustrated on trying to figure it out. No matter where I put the code that fills the array, other than in code that I will manually trigger, it always says that the array doesn't exist or it does exist, but no values appear. I think the difficulty lies in my lack of understanding regarding when things get called and the order of events firing. I know there's this "inside-out" logic to object and their parents, but I was pretty sure that by putting the code in the listbox Init I wouldn't have any problem. Why does the code in the command button work and not anywhere else? Anyone have insight to both the specific problem and/or the big picture? Thanks!
Regards, Renoir
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only