-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
-
-
-
- +49 6894 929600
- infoweisang.com
- Google Maps
Accueil > 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](https://www.weisang.com/wp-content/uploads/2016/09/default_avatar.jpg)
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