Custom script function to return TStringList?
I have a bunch of custom functions added, but all pretty are simple. String, Integer, Boolean types.
frxReport1.AddFunction('function GetEmployeeList : TStringlist', 'Inventory Software', 'Get employee list of names and location);
But I can't do something thing like this
if MethodName = 'GETEMPLOYEELIST' then
begin
emplist := tstrings.Create;
emplist.CommaText := 'DAVE=999,JIM=999,BOB=3'; // <-- this would populate from somewhere else but here like this to make it easy to understand.
result := emplist;
end;
My hope was to be able to get this TStringList object , deal with it and in the report free it.