-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > FPScript > How can I access all objects in the root folder with FPScript? > Reply To: How can I access all objects in the root folder with FPScript?
August 7, 2003 at 7:54 pm
#8880
Bernhard Kantz
Participant
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
End
End
globalmax