Highlighted
Absent Member.
Absent Member.
1155 views

Clearing down contents of a listbox / combo box?

Jump to solution

I'm moving through a file of employees.

Each employee carries with it information used to populate list boxes within my application.

I seem to be accumulating data, in the list boxes, as I move through my employees.

How do I ensure that I'm populating a 'clean' listbox / combo box for each new employee?

How do I clear down the existing listbox / combo box content prior to loading new data into them or is it easier to it another way?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Clearing down contents of a listbox / combo box?

Jump to solution

Each of these controls has a Clear method on their Items collection.

The following will remove all current items.

    invoke listBox1::Items::Clear

    invoke comboBox1::Items::Clear

View solution in original post

0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Clearing down contents of a listbox / combo box?

Jump to solution

Each of these controls has a Clear method on their Items collection.

The following will remove all current items.

    invoke listBox1::Items::Clear

    invoke comboBox1::Items::Clear

View solution in original post

0 Likes
Highlighted
Absent Member.
Absent Member.

RE: Clearing down contents of a listbox / combo box?

Jump to solution

Many thanks...onwards we go!! 🙂

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.