str = List_GetFullText(sListVarName)
Bulk search for text
One use of the function List_GetFullText is to quickly search for text within the entire list, without having to loop through each element of the list. The macro code below checks if there is an override entry for the holidays set of ID 20322, for example.
// load the list of country names override
List_LoadFromFile(sListCountryNameOverrides, sFileCountryNames, true)
sFullText = List_GetFullText(sListCountryNameOverrides)
if Pos('20322', sFullText) > 0
// the string 20322 is somewhere in sListCountryNameOverrides
Assignment between lists
Another use of the function List_GetFullText is to quickly copy the text contents of one list into another.
// copy the contents of sListA into sListB
sFullText = List_GetFullText(sListA)
See also: list macro functions.