I have a text file with a hundred employees. The text has been read in line by line.
I have set up two function to getemployeename and getdepartment.
I have a combo box with departments
When user selects relevant department I want the corresponding names to display in a messagebox
I can't figure out how to do this. Would anybody be able to help me out???
Software/Hardware used:
Visual Studio 2008 Express edition
ASKED:
January 8, 2011 12:33 AM
UPDATED:
January 10, 2011 9:33 PM
This sounds like a homework assignment.
If it is not, why are you using a text file and not a database ?
Was just looking for some guidance after days of trying to solve it. And no its not a homework assignment. Thats funny – I haven’t done homework in years. I’m in my 40s. I’m learning it in work – am being trained in with text files first and trying to learn it myself as well. I did it years ago but have forgotten most of it.
Ok.
As I understand, you have successfully wrote the code to read the text file. Is that right ?
Are you storing the text lines in memory variables, or maybe an array ?
How are the employee names and departments separated in the text file ?
Please provide more details.