Board index » delphi » help me with this easy question, please?

help me with this easy question, please?

Quote
>How can I get an integer in a label.caption?
>And if I can't, is there an other solution?
>var                                         var
>size : integer;                            size : integer;
>begin                                      >begin

 >size := 1245;              OR         1000 div 10 = size;
Quote
> label1.caption := size;                label1.caption := size;
>end;                                        end;
>(in delphi 4 it says that integers and strings are incompatible)
>Regards,
>Vincent.

 

Re:help me with this easy question, please?


Hi,

Vince <vi...@planetinternet.be> schrieb in im Newsbeitrag:
7ncqk1$mi...@news.planetinternet.be...

Quote
> >How can I get an integer in a label.caption?

Look at IntToStr.

Bye, Ralf

Re:help me with this easy question, please?


Quote
Vince <vi...@planetinternet.be> wrote in message

news:7ncqk1$mip$1@news.planetinternet.be...

Quote
> >How can I get an integer in a label.caption?
> >And if I can't, is there an other solution?

var
size : integer;

begin
size := 1245;
label1.caption := inttostr( size );
end;

Other Threads