全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1065
推到 Plurk!
推到 Facebook!

请问关于比较两个时间的问题?

 
Thanksgiving
一般會員


發表:6
回覆:5
積分:2
註冊:2005-03-23

發送簡訊給我
#1 引用回覆 回覆 發表時間:2006-11-05 20:58:21 IP:61.55.xxx.xxx 訂閱
     Present:=now;
decodetime(present,h,m,s,hs);
if Strtoint(MaskEdit1.Text)=strtoint(inttostr(h) inttostr(m) inttostr(s)) then........................
MaskEdit1为 !90:00:00;1;_,编译报错,提示为“: : :”无法转换为int,请各位帮忙!
hsk6138
初階會員


發表:12
回覆:59
積分:49
註冊:2003-12-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2006-11-07 09:54:13 IP:218.160.xxx.xxx 未訂閱

===================引 用 文 章===================
???? Present:=now;
????? decodetime(present,h,m,s,hs);
????? if Strtoint(MaskEdit1.Text)=strtoint(inttostr(h) inttostr(m) inttostr(s))????? then........................
?MaskEdit1为 !90:00:00;1;_,编译报错,提示为“:?? :??? :”无法转换为int,请各位帮忙!
因為MaskEdit1 : : 無法轉成整數當然編譯报错
a,b,c:integer;
a:=strtoint(copy(MaskEdit1,1,2));
b:=strtoint(copy(MaskEdit1,3,2));
c:=strtoint(copy(MaskEdit1,6,2));
if (a b c)=strtoint(inttostr(h) inttostr(m) inttostr(s)) then


系統時間:2024-07-03 1:04:30
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!