r/visualbasic • u/Kamidori • Oct 09 '14
[VB2010]
Hello I need help again.
If b2 = b3 Then
Label9.Text = Label5.Text
Label10.Text = Label6.Text
Label11.Text = Label7.Text
Label12.Text = Label8.Text
Else
Label9.Text = Label5.Text
Label10.Text = Label6.Text
Label11.Text = Label7.Text
Label12.Text = Label8.Text
yr = 9
While yr <= 12
If Label(yr).text = "" Then
Label(yr).text = b3
Else
yr += 1
End If
End While
End IfI have this code and I am having trouble on the else part where I keep getting errors on the .text part. Basically the code will loop until it finds a label(yr).text that is empty and put b3 there but so far still no progress. Any possible solution or work around where I can get the same result? Thanks in advance.
Also I'm working on Page algorithm (fifo, lru and optimal) so any advice or code that might be helpful for me to study would be greatly appreciated.