Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement