I ran into a few problems with my vb programs.
1. I'm reading data from a file and the record stops when there is a 0 on 2 straight lines, then the next record starts.
So basically something like this
Jim
9
7
0
0
Joe
8
0
0
How do I know when the next record begins? right now I'm trying to do it with nested if's but I'm only getting the first record.
2. The next one I'm trying to do is to print this in a listbox
*******
*****
***
*
I have the nested loops giving me the right amount of stars but I'm getting 1 per line because the me.lstOutput.Items.Add("*") goes to a new line after each one. How do I fix this?
I'd put the code on here but I forget the
1. I'm reading data from a file and the record stops when there is a 0 on 2 straight lines, then the next record starts.
So basically something like this
Jim
9
7
0
0
Joe
8
0
0
How do I know when the next record begins? right now I'm trying to do it with nested if's but I'm only getting the first record.
2. The next one I'm trying to do is to print this in a listbox
*******
*****
***
*
I have the nested loops giving me the right amount of stars but I'm getting 1 per line because the me.lstOutput.Items.Add("*") goes to a new line after each one. How do I fix this?
I'd put the code on here but I forget the
Code:
command to do it.
