Quantcast

Jump to content


Photo

Darn Error!! Need help!


  • Please log in to reply
2 replies to this topic

#1 Jakezilla

Jakezilla
  • 1,834 posts

Posted 23 May 2004 - 04:06 PM

If I get this solved my program should 100% work.
I get this error:
System.NullReferenceException: Object variable or With block variable not set.

Here is my code:
Private Sub Ti'mer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Ti'mer1.Tick
Di'm i2_a = -1
Di'm i2_b = 0
Di'm a
Di'm currentitem As InetCtlsObjects.Inet
While I <= ListBox1.Items.Count()
I += 1
While i2_b <= connections
i2_a += 1
i2_b += 1
currentitem = inet_array.GetValue(i2_a) << ERROR
currentitem.OpenURL(ListBox1.Items.Item(I))
a = Split(TextBox4.Text, "Total Refreshes: ")
TextBox4.Text = "Total Refreshes: " & a(1) + 1
End While
End While
End Sub

Edited by //.Razor, 23 May 2004 - 04:09 PM.


#2 memikeos

memikeos
  • 199 posts

Posted 23 May 2004 - 04:47 PM

Did you declare " I " elseware in the program?

#3 Jakezilla

Jakezilla
  • 1,834 posts

Posted 23 May 2004 - 04:57 PM

waaait you mean even if its not in the same sub, it cannot be defined twice?

This is VB.net by the way

EDIT:
This did not help.

Edited by //.Razor, 23 May 2004 - 05:01 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users