Access different paths within a for loop

SupportCommunity FPScript Access different paths within a for loop

Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #12490
    Heiko GrossHeiko Gross
    Mitglied

    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.

    ..\0%\K1\GK-Darstellung\Aufreißen\fric_coeff_odd_0%

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

    #8156
    Heiko GrossHeiko Gross
    Mitglied

    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.

    ..\0%\K1\GK-Darstellung\Aufreißen\fric_coeff_odd_0%

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

    #8786
    Bernhard KantzBernhard Kantz
    Moderator

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

    Example:

    
    Dim names, max, globalmax 
    names = .Parent.Objects("Data.*").Names
    For Each Row i In names Do 
        max = Maximum($names$) 
        If DataType(globalmax) == TYPE_EMPTY Or max > globalmax then 
            globalmax = max 
        End 
    End  
    

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

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