Add support for anonymous functions
Issue #29
closed
function TValidator.Foo(): TRuleRequiredFunc;
begin
Result := TRuleRequiredFunc.Create();
Result.Func :=
procedure(const DataSet: TData<carret>Set; const Field: TField; out Error: TValidationError; var Required: Boolean) // go to definition is not working
begin
if (DataSet.<carret>) //autocomplete is not working
end;
end;
Comments (4)
-
repo owner -
repo owner - edited description
- changed status to on hold
Need more information
-
you can close this ticket, somehow its working in 0.12
-
repo owner - changed status to closed
- Log in to comment
Can TDataSet be resolved outside the anonymous procedure? This should work generally.