Evaluate value of a parameter in a parameter set
Posted: Wed Jul 22, 2009 7:50 pm
Here is the situation
I have a parameter set. Let us say, psA
There is one parameter defined in this parameter. Let us say, firstParamA which has a value of "ABC"
I have another parameter set psB which has one parameter firstParamB from which I need to get the value of "ABC"
If I define psB.firstParamB = psA.firstParamA, the value passed is psA.firstParamA whereas I need the value defined for psA.firstParamA.
In other words, I need the equivalent of an eval function such that I could do define
psB.firstParamB = eval(psA.firstParamA) so that at run-time psA.firstParamA gets evaluated/interpreted and provides the value of "ABC"
Is this possible?
Many thanks,
I have a parameter set. Let us say, psA
There is one parameter defined in this parameter. Let us say, firstParamA which has a value of "ABC"
I have another parameter set psB which has one parameter firstParamB from which I need to get the value of "ABC"
If I define psB.firstParamB = psA.firstParamA, the value passed is psA.firstParamA whereas I need the value defined for psA.firstParamA.
In other words, I need the equivalent of an eval function such that I could do define
psB.firstParamB = eval(psA.firstParamA) so that at run-time psA.firstParamA gets evaluated/interpreted and provides the value of "ABC"
Is this possible?
Many thanks,