|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
2003/5/4 15:07:01 |
标题: |
|
加入我的收藏 |
楼主: |
fm_weather.Left :=int((screen.Width -fm_weather.Width )/2);
提示: [Error] weather.pas(36): Incompatible types: 'Integer' and 'Extended'
fm_weather.Left :=(screen.Width -fm_weather.Width )/2; 这样也是错,唉
----------------------------------------------
- |
作者: |
123 (猪猪) |
★☆☆☆☆ |
-
|
盒子活跃会员 |
|
2003/5/4 18:07:02 |
1楼: |
:=(screen.Width -fm_weather.Width )div 2; 这样试试看。
----------------------------------------------
-
|
作者: |
|
2003/5/4 20:41:32 |
2楼: |
或则除的结果再trunc一下都可以
----------------------------------------------
-
|
|