![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#4
|
|||
|
|||
|
Final de archivo Excel
Hola:
Una solucion podria ser de buscar la fila con una columna que sea obligatoria y chequear si esta vacia. Un ejemplo. Código:
repeat
with InsertarProductos do
begin
Parameters.ParamByName('@codplu').Value:= Excel.Cells[j,1].Value;
Parameters.ParamByName('@codtrasval').Value:= Excel.Cells[j,2].Value;
Parameters.ParamByName('@codfabricante').Value:= Excel.Cells[j,3].Value;
Parameters.ParamByName('@descripcionplu').Value:= Excel.Cells[j,4].Value;
Parameters.ParamByName('@preciocosto').Value:= Excel.Cells[j,6].Value;
Parameters.ParamByName('@precioventa').Value:= Excel.Cells[j,7].Value;
Parameters.ParamByName('@um').Value:= 1;
Parameters.ParamByName('@categoria').Value:= Excel.Cells[j,13].Value;
Prepared:= True;
ExecProc;
end;
inc(j);
until Excel.Cells[j,2].Value = '';
Luis Garcia |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Archivo PDF a Excel | Anabel | Varios | 1 | 20-12-2006 13:18:09 |
| desde excel al archivo DB | Max_E. | Conexión con bases de datos | 2 | 07-11-2006 15:43:51 |
| Guardar archivo de Excel | LinaC | Varios | 6 | 01-09-2006 14:21:18 |
| Triggers - Recorriendo los campos | Sick boy | Firebird e Interbase | 1 | 06-06-2006 09:55:43 |
|