Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Re populating a listbox
Message
From
20/03/2008 10:12:53
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01303858
Message ID:
01303871
Views:
12
>What would be the best way to repopulate a listbox with diff values after the user has selected an orig value. In other words, I'm recycling the listbox.

Write listbox populating code in separate form.method and call it every time it is needed, e.g.
Myform.RefillListbox
Lparameters nRefillmode
With this.mylistbox
 .clear
 do case
 case nRefillmode=1
   .additem('item1')
 case nRefillmode=2
   .additem('item2')
 ....
 Endcase 
Endwith
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform