Ver Mensaje Individual
  #2  
Antiguo 28-07-2024
lucho6007 lucho6007 is offline
Miembro
 
Registrado: ene 2009
Ubicación: Junín, pcia de BsAs, Argentina
Posts: 83
Reputación: 17
lucho6007 Va por buen camino
Hola, buenas tardes!
Podrías probar con el siguiente código:

Código Delphi [-]
var
  TipoGen:string;
begin
  TipoGen:= '(' + QuotedStr('Comedia') + ',' + QuotedStr('Drama') + ')';
  IBQueryInvent.SQL.Clear;
  IBQueryInvent.SQL.Add('select * from INVENTARIO where Genero IN '+ TipoGen);  // GENERO es tipo VARCHAR 
  IBQueryInvent.Open;
end;

Última edición por lucho6007 fecha: 28-07-2024 a las 23:35:28. Razón: copié y pegué el código y se veía mal :(
Responder Con Cita