Hi Chaim,
suggestion...
this.sorted=.F.
This.Clear()
...
.AddListItem(...
...
this.sorted=.T.
After closing the new form, you must refill listbox.
1) Move source code from method Init() to method Requery()
2) Add line This.Requery() to method Init()
3) After closing the new form, you must call method listbox.Requery()
MartinJ
>Help please!
>I added the following code in the listbox/init:
this.sorted=.t.
>use products again in 0
>select products
>scan
> this.addlistitem(allt(products.product))
>endscan
>This.Enabled=.t.
Every thing is good but:
>I have a command button to open new form for adding new product.
>When I close the new form I don't see the new item in the list box of the main form only if I close the main form and reopen it.
>Thank for answer