Global data value refactoring + 1st scripting version
This commit is contained in:
@@ -69,9 +69,8 @@ begin
|
||||
raise EArgumentException.CreateFmt('%s requires a scalar argument.', [AName]);
|
||||
|
||||
AArg := AArgs[0].AsScalar;
|
||||
if not (AArg.Kind in [skInteger, skInt64, skSingle, skDouble, skDecimal]) then
|
||||
raise EArgumentException.CreateFmt('%s requires a numeric argument, but got %s.', [AName, AArg.Kind.ToString]);
|
||||
|
||||
// The check for specific numeric kinds is no longer necessary,
|
||||
// as TScalar can only be Ordinal or Float.
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user