Forum FlexPro – Discuss your topic!

How can I access all objects in the root folder with FPScript?

Home > Community > FPScript > How can I access all objects in the root folder with FPScript?

Ansicht von 5 Beiträgen - 1 bis 5 (von insgesamt 5)
  • Autor
    Beiträge
  • #12546
    Richard WeisangRichard Weisang
    Administrator

    I need to access multiple datasets in the root folder of the explorer dynamically.

    #8880
    Bernhard KantzBernhard 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
    
    #8881

    Hello!

    How can I proceed in the same way in FlexPro Version 5?

    #8209
    Richard WeisangRichard Weisang
    Administrator

    I need to access multiple datasets in the root folder of the explorer dynamically.

    #8882
    Bernhard KantzBernhard Kantz
    Teilnehmer

    This is not possible in FlexPro 5. This functionality was introduced in FlexPro 6.

    Support
    support@weisang.com

Ansicht von 5 Beiträgen - 1 bis 5 (von insgesamt 5)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.