07-11-2022 09:45 AM
Hello,
I'm working on a subsequence.
I have a container and I would like to access the values in it.
To choose the STEP I want, I use a variable name Banc_Test_Choisit.
So I would like to do something like this :
Locals.Performances_STEP.Parameters.Banc_Test_Choisit.IP.Courant_Permanent_Minimum
If you have an idea 🙂
Thank !
Arthur
07-13-2022 01:35 AM
Hello Arthur,
I'm not sure I undertood your task correctly so forgive me if I did not.
If you want to dynamically decide the values of which variable to get, you can take a look at the Lookup string of the GetValXXX methods.
So if you have your parameter which declares the variable name to get (lets say Parameters.MyParameter = "STEP5"),
then you can dynamically get the value of Locals.Performances_STEP.Step5 with this expression:
Locals.Performances_STEP.GetValVariant(Parameters.MyParameter,1)
Does this help?
Stefan