Home > Community > FPScript > Access different paths within a for loop > Reply To: Access different paths within a for loop

#8786
Bernhard KantzBernhard Kantz
Participant

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