| |

VerySource

 Forgot password?
 Register
Search
View: 855|Reply: 4

Little girl asking for help !!!!!! Dynamically create qrlabel problems, wait online ... urgent !!!

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-2-22 14:00:01
| Show all posts |Read mode
I want to dynamically create qrlabel in quickrep, but it always makes mistakes, why ??
code show as below:
procedure TARPD00.QRBand4BeforePrint (Sender: TQRCustomBand;
  var PrintBand: Boolean);
var qrlabel: TQRLabel;
    i: integer;
begin
 for i: = 1 to 23 do
  begin
   if strtofloat (temp [i] [3])> 0 then
    begin
     qrlabel: = TQRLabel.Create (self);
     qrlabel.Parent: = ARPD00.QRBand4;
     qrlabel.Left: = 0;
     qrlabel.Top:=count;
     qrlabel.Height: = 17;
     qrlabel.AutoSize: = true;
     qrlabel.Caption: = temp [i] [2] + '' + temp [i] [3];
     count: = count + 20;
    end;
  end;
end;
Reply

Use magic Report

0

Threads

22

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-5-6 20:15:01
| Show all posts
Can't see the problem, missing reference unit?
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-5-20 10:15:02
| Show all posts
qrlabel: = TQRLabel.Create (self);

Did the program finally release qrlabel?
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Invalid IP Address

Post time: 2020-5-27 10:45:01
| Show all posts
QR label.free;
Reply

Use magic Report

0

Threads

13

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-7-6 14:30:01
| Show all posts
Post error tips
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list