By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,618 Members | 1,543 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,618 IT Pros & Developers. It's quick & easy.

How to use multiselect property of FileListBox

P: 3
I've developed an interface in VB6 whereby I will be selecting text file to extract relative data to Oracle. I'm able to select one file from FileListBox and process. I want to automate this process by selecting all the files based on the selection criteria and process one after the other on ButtonClick event. It can be done handling ListIndex Property. How to set this property?
Mar 28 '07 #1
Share this Question
Share on Google+
1 Reply


pureenhanoi
100+
P: 175
I've developed an interface in VB6 whereby I will be selecting text file to extract relative data to Oracle. I'm able to select one file from FileListBox and process. I want to automate this process by selecting all the files based on the selection criteria and process one after the other on ButtonClick event. It can be done handling ListIndex Property. How to set this property?
ListIndex do not reference to all selected items in ListBox. So, to determine which item is selected and which is not, you can use Selected property.
Expand|Select|Wrap|Line Numbers
  1. For i=0 to List1.ListCount-1
  2.     If List1.Selected(i) then
  3.         process List1.List(i).Text
  4.     End If
  5. Next i
  6.  
Mar 28 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.