Fórum Codigo errado. #141996
28/02/2003
0
Preciso criar 10 shapes dinamicamnte que receba os dados de minha tabela.Estou fazendo algo errado.Alguém tem alguma sugestão.
Celi
Curtir tópico
+ 0
Responder
Posts
28/02/2003
Anonymous
Mostre o código...
Responder
Gostei + 0
28/02/2003
Celi
preciso criar 10 shapes onde pega os dados da tabela e por exemplo se tem 3 dados na tabela coloca nos tres primeiros shapes e desenha tambem os outros sete em branco.
Qual o problema deste código, não faz.
No quickreport somente tenho meu qrdbtext.
var
qShape : TQrShape;
begin
while not dtmod.Tblfilhos.Eof do
begin
cont := cont + 1 ;
dtmod.Tblfilhos.Next ;
end;
cont := 10 - cont;
i := 30;
while cont >= 0 do
begin
if cont = 1 then
qShape := TQrShape.Create(self);
qShape.Parent := QRBand2;
qShape.Top := 2;
qShape.Left := 48;
qShape.Width := 429;
qShape.Height :=36;
dtmod.Tblfilhos.Next ;
end;
end;
end.
Qual o problema deste código, não faz.
No quickreport somente tenho meu qrdbtext.
var
qShape : TQrShape;
begin
while not dtmod.Tblfilhos.Eof do
begin
cont := cont + 1 ;
dtmod.Tblfilhos.Next ;
end;
cont := 10 - cont;
i := 30;
while cont >= 0 do
begin
if cont = 1 then
qShape := TQrShape.Create(self);
qShape.Parent := QRBand2;
qShape.Top := 2;
qShape.Left := 48;
qShape.Width := 429;
qShape.Height :=36;
dtmod.Tblfilhos.Next ;
end;
end;
end.
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)