Date time picker will not give me time editing with time alone
Date time picker will not give me time editing in date time state
In ether state ether state
If DataTypeTextToLBDT(Grid.Cells[1, ARow]) = lbTime then
begin
LBRec.LBData := lbTime;
Keys.GetRec(LastKeyName + LastRecName, LBRec);
Grid.EditorMode := False;
DTPicker.Format := 'hh:mm:ss';
DTPicker.Time := LBRec.Time;
ViewControl(DTPicker);
UpdateGrid;
Exit;
end;
If DataTypeTextToLBDT(Grid.Cells[1, ARow]) = lbDateTime then
begin
LBRec.LBData := lbDateTime;
Keys.GetRec(LastKeyName + LastRecName, LBRec);
DTPicker.Format := 'dd/MMM/yyyy hh:mm:ss';
DTPicker.DateTime := LBRec.DateTime;
ViewControl(DTPicker);
UpdateGrid;
end;
You must think I’m a pain in the what’s it being picky in my code wanting attention or something ? any way what is a fix for me