LAZARUS


 KONWERSJE

  integer  →  string
  s := IntToStr(x);
label1.caption := IntToStr(alfa);


  real  →  string)
  s := FloatToStr(x);
label2.caption := FloatToStr(number);


There is also an extended version of this FloatToStrF conversion, thanks to which it is possible to determine precisely format.
  s := FloatToStrF(number, format, precision, number of digits after the decimal point);
label3.caption := FloatToStrF(x, ffFixed, 100, 2);
ffFixed ffFixed is a constant defining the format of the printout, here in the form of (character)digit.digit


  string  →  integer
  x := StrToInt(s);
alfa := StrToInt(edit1.text);


  string  →  real
  a := StrToFloat(s);
z := StrToFloat(edit2.text);


 OTHER CONVERSION of the REAL number (r) to the text variable (t)

 PRINTOUTS IN SEPARATE LINES:

 1) Label

 Label1.caption:=””;
 for n:=1 to 15 do
  Label1.caption := Label1.caption + #10 + IntTostr(n);

”” means empty text, there are no spaces between quotation marks! #10 is a special character to indicate a line change.

 2) Form

 for n:=1 to 15 do
   form1.canvas.textout(50, 50+n*20, IntTostr(n));

n*20 denotes the spacing between print lines, which is determined by the size of the printout. font, for a larger fixed font of 20 shall be increased accordingly