FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Assistance FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Assistance FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

Topic

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

Page d'accueil ' Communauté ' FPScript ' Comment puis-je accéder à tous les objets du dossier racine avec FPScript ?

Voir les messages de 5 - 1 à 5 (sur un total de 5)
  • Auteur
    Messages
  • #33441
    Richard Weisang
    Maître des clés

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

    #33438
    Bernhard Kantz
    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”:
    [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
    Maître des clés

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

    #33440
    Bernhard Kantz
    Participant

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

    Support
    support@weisang.com

Voir les messages de 5 - 1 à 5 (sur un total de 5)
  • Vous devez être connecté pour répondre à ce sujet.