03-26-2013, 02:05 PM
mnxford Wrote:bro if u guys don't help us then h0w we can learn s0mething???So you want to learn ? ok look in the msgbox it says the error occurs on line 26 and by my calculations that line is this one
[code2=vbnet]ftpp = data(4).ToString[/code2]
second information you can get from the error is the type "IndexOutOfRange" that means that index 4 does not exist in your table. i suggest the folowing corection to your code
[code2=vbnet]vlink = data(0).ToString
dlink = data(1).ToString
ftpu = data(2).ToString
ftpp = data(3).ToString[/code2]
Try this code, if you get an error again and still want to learn the next lesson is debugging.
Here's how to debug:
Put a breakpoint at the begining of the try/catch block, you can do that by clicking next to were you see the green or yellow line, a red dot shold apear.
When the breakpoint is hit and you are see the code again press F10 , that will take you through the code step by step, line by line.
Check the values, you can do taht in 2 ways , either by going to the locals tab in the bottom part of visual studio or by hovering over the strings with the mouse.Check the 4 strings(vlink,dlink,ftpu,ftpp) and see if the right values are assigned. Beware that the values are assigned after the yellow line has passed the string.
Sssssssssoftware developer...