Topic
How can I access all objects in the root folder with FPScript?
- This topic has 4 replies and 3 voices and was last updated 21 years, 9 months ago ago by Richard Weisang.
-
AuthorPosts
-
07.08.2003 at 19:40 #33441Richard WeisangKeymaster
I need to access multiple datasets in the root folder of the explorer dynamically.
07.08.2003 at 19:54 #33438Bernhard KantzParticipantThere 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”:
[code]
Dim names, max, globalmax, inames = .Fld.ObjectNames(“Data*”)
For Each Value i In names Do
max = Maximum($names[i]$)
If DataType(globalmax) == TYPE_EMPTY Or max > globalmax then
globalmax = max
End
Endglobalmax
[/code]12.09.2003 at 23:29 #33439g.foidl@jenbacher.comParticipantHello!
How can I proceed in the same way in FlexPro Version 5?
18.09.2003 at 08:29 #33437Richard WeisangKeymasterI need to access multiple datasets in the root folder of the explorer dynamically.
18.09.2003 at 08:29 #33440Bernhard KantzParticipantThis is not possible in FlexPro 5. This functionality was introduced in FlexPro 6.
Support
support@weisang.com -
AuthorPosts
- You must be logged in to reply to this topic.