Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox and Array Property and where to do what
Message
From
15/05/2001 16:20:29
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Listbox and Array Property and where to do what
Miscellaneous
Thread ID:
00507493
Message ID:
00507493
Views:
69
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
Map
View

Click here to load this message in the networking platform