Hello all, I am currently using VB 2010 and am having a problem comparing strings in my program. My problem is that i need to output a line between each set of employees every time the name changes, in a list box.
For example:
My current output is:
James
James
James
James
Chuck
Chuck
Sandy
Sandy
Sandy
Sandy
I want to create a line between each change of name such as:
James
James
James
James
-------------
Chuck
Chuck
--------------
Sandy
Sandy
Sandy
Sandy
Should I use an if statement to compare the first letter in each string? Also, each name is read in from a text file.