S
shuoshuo
Unregistered / Unconfirmed
GUEST, unregistred user!
我用DateTimePicker控件
var
B_Time:TTime;
begin
B_Time:=datetimepicker1.Time;
IF B_Time>=StrToTime('19:00:00') then
label1.caption:='>'
ELSE label1.caption:='<';
end;
请问不管datetimepicker1改为大于19:00:00还是小于19:00:00 Label1始终都显示'>'
为什麽?急死我了!怎样用DateTimepicker判断时间大小!
var
B_Time:TTime;
begin
B_Time:=datetimepicker1.Time;
IF B_Time>=StrToTime('19:00:00') then
label1.caption:='>'
ELSE label1.caption:='<';
end;
请问不管datetimepicker1改为大于19:00:00还是小于19:00:00 Label1始终都显示'>'
为什麽?急死我了!怎样用DateTimepicker判断时间大小!