FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

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

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

Anzeigen von 5-Stellen - 1 bis 5 (von insgesamt 5)
  • Autor
    Beiträge
  • #33441
    Richard Weisang
    Administrator

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

    #33438
    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”:
    [code]
    Dim names, max, globalmax, i

    names = .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
    End

    globalmax
    [/code]

    #33439

    Hello!

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

    #33437
    Richard Weisang
    Administrator

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

    #33440
    Bernhard Kantz
    Teilnehmer

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

    Support
    support@weisang.com

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