Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox refresh
Message
 
To
22/05/2005 05:01:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01016550
Message ID:
01016551
Views:
11
This message has been marked as the solution to the initial question of the thread.
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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform