I want to define record with procedure or function.
Can you help with syntax?
Type TRec = record
s: string;
p: procedure;
end;
procedure run;
Const
Rec: TRec = ('',run);
procedure run;
begin
end;
It’s possible to run later:
Rec[0].run;
?
This works (see syntax comments in code):