mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
This commit is contained in:
parent
613347be1f
commit
04acc09039
@ -351,6 +351,10 @@ var
|
|||||||
begin
|
begin
|
||||||
if Length(aParameters) <> 1 then
|
if Length(aParameters) <> 1 then
|
||||||
FunctionError(TRttiEnumerationType.GetName<TComparandType>(aComparandType), 'expected 1 parameter');
|
FunctionError(TRttiEnumerationType.GetName<TComparandType>(aComparandType), 'expected 1 parameter');
|
||||||
|
if aValue.IsEmpty then
|
||||||
|
begin
|
||||||
|
FunctionError(TRttiEnumerationType.GetName<TComparandType>(aComparandType), 'Null variable for comparand');
|
||||||
|
end;
|
||||||
case aValue.TypeInfo.Kind of
|
case aValue.TypeInfo.Kind of
|
||||||
tkInteger,tkEnumeration,tkInt64: begin
|
tkInteger,tkEnumeration,tkInt64: begin
|
||||||
if TryStrToInt64(aParameters[0], lInt64Value) then
|
if TryStrToInt64(aParameters[0], lInt64Value) then
|
||||||
|
Loading…
Reference in New Issue
Block a user