Re: Annoying Zero VB 2010
You posted in the wrong section. this is for VB Classic not .Net. I've notified Mods to move the thread for you.
Re: Annoying Zero VB 2010
thank you, I already post it in vb.net, thank you for advising me.
Re: Annoying Zero VB 2010
Your problem is that you are first adding items to the listbox and then doing the calculations. It should be the other way around.
Re: Annoying Zero VB 2010
can you post the code, is my first program in visual basic and I thing this is as far as I can go, it would be of great help. thank you.
Re: Annoying Zero VB 2010
Move the .Add functions to the end of the loop.
Re: Annoying Zero VB 2010
like this
Do Until tCounter >= 13
'operacion con counter
tMulti = tCounter * numeroMulti
tSuma = tCounter + numeroSuma
tCounter = tCounter + 1
ListBox1.Items.Add(numeroMulti & "X" & tCounter & "=" & "" & tMulti) 'lista resultado multiplicacion
ListBox2.Items.Add(numeroSuma & "+" & tCounter & "=" & "" & tSuma) 'lista resultado suma
Loop
is still showing the extra zero in the result, man I'm done, is too hard.
Re: Annoying Zero VB 2010
Try
Code:
Do Until tCounter >= 13
tCounter = tCounter + 1
'operacion con counter
tMulti = tCounter * numeroMulti
tSuma = tCounter + numeroSuma
ListBox1.Items.Add(numeroMulti & "X" & tCounter & " = " & tMulti) 'lista resultado multiplicacion
ListBox2.Items.Add(numeroSuma & "+" & tCounter & " = " & tSuma) 'lista resultado suma
Loop
Re: Annoying Zero VB 2010
jajajajaj, Thanks baja_yu it work, you are amazing, my first program an is running great thank to you, thank, thank, thank, thank, thank for your help, I appreciate it a lot.
THANKS!!!!!!!!!!!!!!!!.
Re: Annoying Zero VB 2010
No problem.
As you feel your question has been answered, please take time to mark the thread as Resolved. You can do so by going to the Thread Tools menu, which is on the right side above your original post, and choosing Mark Thread Resolved.
Re: Annoying Zero VB 2010