joost 14 лет назад
Родитель
Сommit
f5d7fb3d45
1 измененных файлов с 3 добавлено и 6 удалено
  1. 3 6
      packages/fcl-db/src/base/dsparams.inc

+ 3 - 6
packages/fcl-db/src/base/dsparams.inc

@@ -103,12 +103,9 @@ Function TParams.CreateParam(FldType: TFieldType; const ParamName: string;
 
 begin
   Result:=Add as TParam;
-  With Result do
-    begin
-    Name:=ParamName;
-    DataType:=FldType;
-    ParamType:=ParamType;
-    end;
+  Result.Name:=ParamName;
+  Result.DataType:=FldType;
+  Result.ParamType:=ParamType;
 end;
 
 Function TParams.FindParam(const Value: string): TParam;