Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

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

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 14-10-2008
che che is offline
Registrado
 
Registrado: may 2008
Ubicación: Moquegua - Perú
Posts: 9
Poder: 0
che Va por buen camino
Error en type conversion

Saludos Delphines, tengo un problema con mi codigo, es para buscar registros de un tabla, si funciona cuando estan todos los campos, pero si falta un campo me bota error en type de conversion:
****MENSAJE*****
Project Bitacora.exe raised exception class EvariantError with message 'Invalid variant type conversion'.
Process stopped. Use Step or Run to continue


Este es mi codigo:
procedure TForm3.Edit3KeyPress(Sender: TObject; var Key: Char);
var
k,c:integer;
m:string;
begin
if key=#13 then
begin
table1.Refresh;
k:=0;
table1.Last;
while not table1.Bof do
begin
if edit3.Text = table1['Cod_modelo_impre'] then
begin
k:=1;
edit1.Text := table1['Cod_modelo_impre'];
edit4.Text := table1['Cod_marca_impre'];
edit2.Text := table1['Modelo_impre'];
edit5.Text := table1['serie_impre'];
break;
end
else
table1.Prior;
end;

El sistema es Delphi 6 con access 2007, cuando usa la base de datos Paradox no me salia este error. Gracias de antemano por cualquier ayuda.
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
Error en Query.Open : Invalid field type (BLOB) natalinuyo Gráficos 4 15-10-2008 20:16:29
Error: Class EoleException, old format or invalid type..... gaby_stars Varios 0 26-06-2008 02:18:07
Error [Oracle][ODBC]restricted data type attribute violation bego Oracle 3 06-01-2007 18:55:23
Error de Conversion..... chileno OOP 7 06-01-2007 01:03:28
Error: Type mismatch in expression gusanita Varios 11 28-01-2006 18:12:17


La franja horaria es GMT +2. Ahora son las 08:52:42.


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