Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #4  
Antiguo 12-10-2006
Arturo Arturo is offline
Miembro
 
Registrado: sep 2004
Posts: 91
Poder: 20
Arturo Va por buen camino
ok, gracias y hice unos cambio y ya me quedo de la siguiente forma por si alguien le interesa:
Código PHP:
var i:integer;
begin
  with ADOQuery1 
do begin
  Close
;
  
SQL.Clear;
  if 
not Prepared then Prepared;
  for 
i:= 1 to StringGrid1.RowCount do begin
   SQL
.text:='INSERT INTO equipocomputo(COMP_ID, COMP_DESCRIP, COMP_ESPECIFICACIONES,  COMP_CON_IVA)';
   
SQL.text:=SQL.text 'values(:prComp_id, :prcomp_descrip, :prcomp_especificaciones, :prcomp_con_iva)';
   
Parameters.ParamByName('prComp_id').Value:=StringGrid1.Cells[0,i];
   
Parameters.ParamByName('prcomp_descrip').Value:=StringGrid1.Cells[1,i];
   
Parameters.ParamByName('prcomp_especificaciones').Value:=StringGrid1.Cells[2,i];
   
Parameters.ParamByName('prcomp_con_iva').Value:=StringGrid1.Cells[3,i];
   
ExecSQLend;
 
end
y listo los ingreso primero al stringGrid1 y luego con un boton de guardar los recorre y recorre el stringrid y los ingresa. bye
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
PAsarle parametros a un trigger .. ingel SQL 2 19-05-2006 18:36:32
convertir fecha en la senetencia sql.. uper SQL 2 01-02-2006 18:20:13
Pasarle un objeto a una DLL adlfv OOP 3 19-08-2005 20:42:49
stringgrid , puedo recibir valores ? martita OOP 2 04-07-2005 19:21:03
Pasarle un parameto al With ...??? ingel Varios 4 30-01-2004 22:29:41


La franja horaria es GMT +2. Ahora son las 05:58:06.


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