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

Access different paths within a for loop

Page d'accueil ' Communauté ' FPScript ' Accès à différents chemins dans une boucle de recherche

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #33237
    Heiko Gross
    Participant

    I would like to access different folders/paths within a for loop in order to extract in signals in these folders single values . It is necessary to change two characters in the path as posted in the example below.

    ..%K1GK-DarstellungAufreißenfric_coeff_odd_0%

    I would like to access in the for loop the 0%, 10%, 20%, …
    Thanks for the help

    #33239
    Heiko Gross
    Participant

    I would like to access different folders/paths within a for loop in order to extract in signals in these folders single values . It is necessary to change two characters in the path as posted in the example below.

    ..%K1GK-DarstellungAufreißenfric_coeff_odd_0%

    I would like to access in the for loop the 0%, 10%, 20%, …
    Thanks for the help

    #33238
    Bernhard Kantz
    Participant

    For this purpose you can use the [b]Indirection Operator $$[/b] in FPScript.
    This operator serves to access data sets and variables by using their names.

    Example:
    [code]
    Dim names, max, globalmax
    names = .Parent.Objects(“Data.*”).Names
    For Each Row i In names Do
    max = Maximum($names[i]$)
    If DataType(globalmax) == TYPE_EMPTY Or max > globalmax then
    globalmax = max
    End
    End
    [/code]

    See also
    FlexPro Help
    Analyzing Data|Reference|FPScript Operators|Data Access|Indirection

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