You've already forked lazarus-ccr
Fix CanDefocus with proper validations
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3607 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -532,7 +532,7 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
if (Length(CellEditor.Text) = 0) then
|
if (Length(CellEditor.Text) = 0) then
|
||||||
exit;
|
exit;
|
||||||
Result := IsValidDateTimeString(NormalizeDateTime(CellEditor.Caption, theValue));
|
Result := IsValidDateTimeString(NormalizeDateTime(CellEditor.Text, theValue));
|
||||||
if not Result then
|
if not Result then
|
||||||
begin
|
begin
|
||||||
ShowMessage(Format(SInvalidDateTime, [CellEditor.Text]));
|
ShowMessage(Format(SInvalidDateTime, [CellEditor.Text]));
|
||||||
@ -726,7 +726,7 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
if (Length(CellEditor.Text) = 0) then
|
if (Length(CellEditor.Text) = 0) then
|
||||||
exit;
|
exit;
|
||||||
Result := IsValidDateTimeString(NormalizeTime(CellEditor.Caption, theValue));
|
Result := IsValidTimeString(NormalizeTime(CellEditor.Caption, theValue));
|
||||||
if not Result then
|
if not Result then
|
||||||
begin
|
begin
|
||||||
ShowMessage(Format(SInvalidTime, [CellEditor.Text]));
|
ShowMessage(Format(SInvalidTime, [CellEditor.Text]));
|
||||||
@ -959,7 +959,7 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
if (Length(CellEditor.Text) = 0) then
|
if (Length(CellEditor.Text) = 0) then
|
||||||
exit;
|
exit;
|
||||||
Result := IsValidDateTimeString(NormalizeDateTime(CellEditor.Caption, theValue));
|
Result := IsValidDateString(NormalizeDate(CellEditor.Text, theValue));
|
||||||
if not Result then
|
if not Result then
|
||||||
begin
|
begin
|
||||||
ShowMessage(Format(SInvalidDate, [CellEditor.Text]));
|
ShowMessage(Format(SInvalidDate, [CellEditor.Text]));
|
||||||
|
Reference in New Issue
Block a user