Errror IndexOutofRangeException was unhandled
Publicado por diego (1 intervención) el 14/05/2013 23:06:40
Recientemente estoy programando en .net pero, lo que hago es jalar datos a un datatable y de ahi jalar fila a fila:
Pero sale un error, me dice
IndexOutofRangeException was unhandled :
There is no row at position 0.
No se por que ese error, por favor apoyennnnnnnnnnnnnnnnnnnnnnnnnnnnn
1
2
3
4
5
6
7
8
9
10
11
12
Private Function f_Retrieve(ByVal v_NroGuia As String) As Integer
Dim index As Integer
Dim ObjClassBuscarPreguias_LN As New Cls_BuscarPreGuias_LN
Windows.Forms.Cursor.Show()
Windows.Forms.Cursor.Current = Cursors.WaitCursor
Dim dtResultado As New DataTable
dtResultado = ObjClassBuscarPreguias_LN.BuscarNroGuia_LN(v_NroGuia)
LblCiudad.Text = dtResultado.Rows(0).Item("ORIGEN")
TxtCiudadDestino.Text = dtResultado.Rows(0).Item("DESTINO")
End Function
Pero sale un error, me dice
IndexOutofRangeException was unhandled :
There is no row at position 0.
No se por que ese error, por favor apoyennnnnnnnnnnnnnnnnnnnnnnnnnnnn
Valora esta pregunta


0