Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > OOP
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #7  
Antiguo 05-04-2023
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is online now
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - España
Posts: 19.437
Poder: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Como he dicho creo que el código anterior se podría simplificar con algo así:

Código Delphi [-]
i := 0;
while not DataModule1.IBQListado.Eof do
begin
for j := 0 to DataModule1.IBQListado.FieldCount - 1 do
    fr.StringGrid1.Cells[j, i + 1] := DataModule1.IBQListado.Fields[j].Value;
    DataModule1.IBQListado.Next;
    Inc(i);
end;
fr.StringGrid1.RowCount := DataModule1.IBQListado.RecordCount + 1;
fr.StringGrid1.ColCount := DataModule1.IBQListado.FieldCount;
for i := 0 to DataModule1.IBQListado.FieldCount - 1 do
    fr.StringGrid1.Cells[i, 0] := DataModule1.IBQListado.Fields[i].FieldName;

Y eliminas la matriz.
Si aun así te sigue dando problemas de "range check error", debes ejecutarlo paso a paso y evaluar dónde está el error.
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Grabar datos definitivos con ClientDataSet LIGERO MS SQL Server 6 25-08-2017 11:15:38
Acceder desde un WebBrowser a un frame que esta dentro de otro frame. deneus Delphi para la web 1 25-10-2014 17:51:58
Frame en un Form chinchan C++ Builder 3 07-05-2008 13:39:59
Orden de Creación. Form y Frame gluglu Varios 8 20-02-2007 19:24:50
convertir un form en un frame ercrizeporta Varios 6 04-07-2005 21:52:58


La franja horaria es GMT +2. Ahora son las 04:37:02.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi