>>I am using vfp3.0
>>I have a listbox inside a page of my pageframe.
>>Every time I try to click a list item on the listbox, it doesn't work. But if I click another page and then click back this page again at once, I can click a item on the list box easily.
>>Similarily, if I want to select a list item by code (listindex=1), it doesn't work, unless I click another page and back at once.
>>Can I solve this problem, I don't want to activate other page anyway.
>
>'If' your list box is the result of a query make sure you run the query in the INIT() of the object or the Form first. This will give you the initial data. It really depends on how your data source is setup.
>
>Tom
The data source is a table.
oh, what is the fastest way to write good program?