Help with split
Posted
by Andeeh
on Stack Overflow
See other posts from Stack Overflow
or by Andeeh
Published on 2010-04-22T14:26:56Z
Indexed on
2010/04/22
14:33 UTC
Read the original article
Hit count: 424
I have something that splits each line of a file. here is a sample of a line it might split
"James","Project5","15/05/2010","3"
I have this code
Private Sub Command1_Click()
Open jobs For Input As #1
Do While Not EOF(1)
Line Input #1, tmpstring
splititems = Split(tmpstring, ",")
Form1.Print splititems(0)
Form1.Print splititems(1);
Form1.Print splititems(2);
Form1.Print splititems(3)
Loop
Close #1
End Sub
I would like it to instead of outputting a name each time there is a name, just put the project under the name that is already there. e.g. if there was another line in the file with the name james and he had been working on project 2 in that line I would like it to just put project 2 under the "James" that had already been put on the form.
Any help would be fantastic
© Stack Overflow or respective owner