Ver Mensaje Individual
  #1  
Antiguo 12-06-2010
fcios fcios is offline
Miembro
 
Registrado: jul 2003
Posts: 108
Reputación: 23
fcios Va por buen camino
Question Con Rave hacer un Select dentro de un evento

Hola tengo Rave 7.7.0

Yo utilizaba Quick Report pero este ya no viene con Delphi 2010

En una DataBand le agregue el evento BeforePrint

{ Event for dvSolDataBand.OnBeforePrint }
function dvSolDataBand_OnBeforePrint(Self: TRaveDataBand);
begin

// aca quiero hacer varios querys a otras DataView

// ¿ como hago el select a una Tabla DataView ?
dv2.Select.text := 'SELECT * FROM TABLA1 WHERE CAMPO1=1';

// y luego quiero ver si encontró algo
if dv2.IsEmpty then
Text1.Text := 'NO LO ENCONTRO';
end if;

end OnBeforePrint;

Muchas Gracias
Responder Con Cita