Message 1 of 3
Populating list boxes during form initialisation
Not applicable
04-01-2005
10:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm reading data from a data base and using the data to populate two list
boxes using the form Initialisation event.
My ambition is to populate one list box first, set it's list index to 0 and
then read the value from there as a selection parameter for populating the
second list box.
However, as I step through the code I find that the first list box has no
value during the form initialisation.
It makes no difference if I move the code to the Form Activate event during
the initial opening of the form.
Is this the normal way forms are activated - ie that list boxes have no
readable data till the form actually appears to the user?
I have used a work around by sending the first value in the first box to a
temporary variable, but that seems inelegant.
--
Laurie Comerford
CADApps
www.cadapps.com.au