Topic
Access different paths within a for loop
- This topic has 2 replies and 2 voices and was last updated 17 years, 4 months ago ago by Heiko Gross.
-
AuthorPosts
-
04.01.2008 at 19:02 #33237Heiko GrossParticipant
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 help04.01.2008 at 19:02 #33239Heiko GrossParticipantI 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 help05.01.2008 at 03:00 #33238Bernhard KantzParticipantFor 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 -
AuthorPosts
- You must be logged in to reply to this topic.