BC30451: Name 'MyDataList' is not declared.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

BC30451: Name 'MyDataList' is not declared.

Source Error:



Line 9: dim ds as DataSet = new DataSet()
Line 10: objCmd.Fill(ds, "OIL_H")
Line 11: MyDataList.DataSource = ds.Tables("OIL_H").DefaultView
Line 12: MyDataList.DataBind()
Line 13: end sub
 
You're not showing it here so I have to ask. Where are you creating your
instance of MyDataList ?
I assume the exception is being thrown at line 11, where you're referencing
the MyDataList object.

Dave
 
Back
Top