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.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.