Referencing a stringlist by name

From: Mark Shapiro (infocus_at_swbell.net)
Date: 01/28/05


Date: Fri, 28 Jan 2005 15:33:23 GMT

I would like to create a generic test routine that checks whether or
not any of a series of TStringLists contains any text. How can I
duplicate the following type of functionality for a TStringList? At
runtime, the name of the list will be contained in the CTable
"control_name" field.

if (FindComponent(CTable.FieldByName('control_namel').asString) as
TRichEdit).Text = '' then
    Result := false;