FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Tengo problemas con IDataReader
Hola, estoy desarrollando una aplicación en Delphi 2005 para ASP.net, en un proceso necesito leer los registros de una tabla usando un IDataReader, cuando hago el proceso varias veces a través de un boton me marca el siguiente error:
Referencia a objeto no establecida como instancia de un objeto Detalles de la excepción: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto Les envio el código donde me marca el error. procedure TWebForm1.CargaAgenda; var Condicion: String; sIni : string; begin IniciaAgenda; fecha_seleccionada.Text := DateToStr(Calendar3.SelectedDate); mensaje_dia_agenda_mostrada.Text := 'Agenda del ' + DiaSemana(Calendar3.SelectedDate) + ' ' + fecha_seleccionada.Text; FSentencia := 'SELECT ID_MEDICO, ID_HORARIO, ID_PACIENTE, PACIENTE, NOTA, ESTATUS FROM AGENDA '; sIni := FormatDateTime('mm-dd-yyyy',StrToDate(fecha_seleccionada.Text)); Condicion := ''; Condicion := ' WHERE (FECHA = ' + QuotedStr(sIni) + ') and (ID_MEDICO = ' + id_medico.Text + ')'; //; with BdpC_Agenda do begin Connection.Open; CommandText := FSentencia + Condicion; lector := ExecuteReader; while lector.Read do begin EscribeAgenda (lector.GetInt32(1), IntToStr(lector.GetInt32(2)), lector.GetString(3), lector.GetString(4), lector.GetInt16(5)); end; lector.Close; Connection.Close; end; end; |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
interbase, tengo problemas al instalarlo | martita | Firebird e Interbase | 1 | 29-09-2005 19:47:07 |
tengo problemas con el tmediaplayer | meosre | Varios | 1 | 20-09-2005 17:21:20 |
Tengo Problemas con mi listado | armakaisen | Impresión | 1 | 07-06-2005 23:39:21 |
?Tengo problemas al utilizar DLL´s hechas en Delphi () | hmazap | Varios | 2 | 20-05-2004 23:32:51 |
IIF (tengo problemas) | Ignacio | SQL | 4 | 02-04-2004 06:59:06 |
|