FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
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. |
|
|
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 |
|