sergiomaster
2007-10-22 09:00:33 UTC
Hello,
i'am trying to change the with of a rectangle like this
function rectangle1_onbeforeprint(self: Travecontrol)
var
w : Double;
begin
w := 3.50;
self.width := W;
end;
but , at my (bad) surprize , the result of my width is 3 not 3.5 as
expected . i tried 3.45 , 3.65 etc ...
it seems that Self.width is taking only the fixed part of the number,
but with is an extended no ?
how can i circumvenate this ???
thanks
i'am trying to change the with of a rectangle like this
function rectangle1_onbeforeprint(self: Travecontrol)
var
w : Double;
begin
w := 3.50;
self.width := W;
end;
but , at my (bad) surprize , the result of my width is 3 not 3.5 as
expected . i tried 3.45 , 3.65 etc ...
it seems that Self.width is taking only the fixed part of the number,
but with is an extended no ?
how can i circumvenate this ???
thanks