Hi just wonder how I can use commandbutton ( caption Letter A) click event to read names from an random file that just corespond to letter A in to an listbox.

Recommended Answers

All 5 Replies

I can't understand clearly. post more information.
Post the code you've been work.

Hi just wonder how I can use commandbutton ( caption Letter A) click event to read names from an random file that just corespond to letter A in to an listbox.

In the click event
1) open the file
2) Start a loop, exit loop on EOF
3) Read a line
4) If line starts with "A" add it to listbox
5) End of loop
6) Close file

Thanks for the information, but if there is in the file servel names that start with letter a is´t better to convert the file to mdb and take it from there?

Hi Waltp

How shall i do it for evry letter in the alphabet????

cmdA .... cmd y,, please Think as it is an papper book with sleeves to the right
with al the letters. You open letter B and find what evry one on that last name

Bonzo

Start by explaining the problem in detail. I answered the question as you posted it. Now you are asking different questions that barely relate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.