There is a property names “ObjectNames” to obtain the names of objects in a folder. Optionally this property accepts “wildcard” characters to restrict the object to be addressed.
The syntax to access the root folder is “.fld”. Once you have the list of object names, you can use the indirection operator $$ to access the objects.
The following example computes the global maximum of all datasets beginning with “data”:
Dim names, max, globalmax, i
names = .Fld.ObjectNames("Data*")
For Each Value i In names Do
max = Maximum($names$)
If DataType(globalmax) == TYPE_EMPTY Or max > globalmax then
globalmax = max