Amigos, a ver si me pueden sacar de este problema.
Estoy creando los QrDBTEXT, por codigo segun lo siguiente.
Código Delphi
[-]
for i := 1 to 5 do begin
if aListas[i] > 0 then begin
With TQRDBText.Create( Self ) do
begin
DataSet := f_Parametros.QryDatos;
Name := lbPrecio' + IntToStr(aListas[i]);
DataField := 'Precio ' + IntToStr(aListas[i]);
Font.Height := 13;
Parent := Banda_Detalle;
Top := 1;
Left := nCol;
AutoSize := True;
Visible := True;
end;
end;
end;
me esta dando error en la linea cuando asigno el dataset.
el QryDatos esta en el form "parametros" el cual tengo en el use del
form de QR.
Me da un error de "violacion de acceso en la direccion....".
Alguna idea??
Gracias
Leonardo