Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Load Order of records in the .SCX
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00085824
Message ID:
00086156
Views:
29
>The only two solutions (virtually the same) I can think of are:
>
>1. Move the listbox INIT code into the INIT event of the container in the class definition and execute a DODEFAULT() after running the INIT code above.
>
>2. Add a custom method to the class which sets the listbox rowsource after the INIT code above runs.
>
>I was hoping the keep the code more segmented.
>
>Any help you can give is much appreciated.
>
>Thanks, Leighton

Leighton,

First you want the control that you want instantiated first to be Sent to back. The example process I gave you expected you would do each control in order and that all conrols would be brought to front so that the last one you did was the front most control and the first one you did ended as the backmost control.

As for your code examples, here's what I would do. Move the code form the list's Init to the list's requery(), then in the controls Init after you have set everything up then you can;

THIS.List1.Requery()
THIS.List2.Requery()

In whatever order you want them to happen.
Previous
Reply
Map
View

Click here to load this message in the networking platform