码迷,mamicode.com
首页 > 其他好文 > 详细

时间转换

时间:2014-07-29 20:37:52      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:blog   http   color   os   io   数据   for   2014   

bubuko.com,布布扣
 
procedure TForm1.FormCreate(Sender: TObject);
begin
    edtHour.Clear;
    edtMinutes.Clear;
    edtHs.Clear;
    edtSec.Clear;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
try
   if edtHour.Text<>‘‘    then edtMinutes.Text:= IntToStr(strtoint(edtHour.Text)*60);
   if edtMinutes.Text<>‘‘ then edtSec.Text:= IntToStr(strtoint(edtMinutes.Text)*60);
   if edtSec.Text<>‘‘     then edtHs.Text:= IntToStr(strtoint(edtSec.Text)*1000);

    Self.Caption:=‘Form1‘;
except
    Self.Caption:=‘数据输入错误‘;
end;
end;




时间转换,布布扣,bubuko.com

时间转换

标签:blog   http   color   os   io   数据   for   2014   

原文地址:http://www.cnblogs.com/xe2011/p/3875876.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!