Extend GetIndexedObjName to return list of all objects

The example for GetIndexedObjName shows how to generate a loop to collect all objects. I find many occasions when I wish this would be simplified, for example with the option as below ...

GetIndexedObjName(sourceFolderStr,objectType,inf)

-- return a string list of all objects

EDIT -- Never mind, I found an alternative (DataFolderList in this case).

Yes DataFolderList is the function to use. It is also faster if you have a huge number of objects.