-
FlexPro
- Auf einen Blick
- Features & Optionen
- Einsatzgebiete
- Alle Vorteile
- Neu in FlexPro 2021
- FlexPro gratis testen
- FlexPro View OEM Freeware
- Kaufberatung
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produkte
- News
- Support
- Unternehmen
- Jobs
- Kontakt
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > FPScript > How can I access all objects in the root folder with FPScript? > Antwort auf: How can I access all objects in the root folder with FPScript?
August 7, 2003 um 7:54 pm Uhr
#8880
Bernhard Kantz
Teilnehmer
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