Use a variable's name, stored in a DataMaster, to get variable value
I have 10 variables: Var1, Var2, Var3, etc. Each of these variables stores a number.
In my Data Master, I have a field called CurrentVariable.
Under CurrentVariable, I literally enter the name of the variable I would like to use: Var1, Var2, Var3, etc.
How can I use the name entered under CurrentVariable field, to get me to the numerical value stored within Var1, Var2, etc.?
Thanks very much!
Are you looking to create an event to update something in a data list/grid during simulation, or are you looking to enter in a variable value into the data master during editing in the Justinmind application?
Are you looking to create an event to update something in a data list/grid during simulation, or are you looking to enter in a variable value into the data master during editing in the Justinmind application?
Hi!
Thanks very much for responding. I'll try to clarify my question better.
1) During a Page Load event, I use Set Value to give values to variables: Var1, Var2, Var3, ... Var10
Var1 = 220
Var2 = 205
Var3 = 180
...
Var10 = 125
2) Later in the simulation, I search for different "recipes" in a DataMaster (using Filter), and would like to perform a calculation using a Factor in the recipe, with the value of the Variable listed
The objective is to build a recipe list, and not have to maintain values through the entire DataMaster. I'd like to maintain 10 variables in one place, and have a list of 1,000 recipes call the variables by name in order to get the variable value.
The variable used in each recipe wouldn't change.
Thanks so much again for any help!
Hi!
Thanks very much for responding. I'll try to clarify my question better.
1) During a Page Load event, I use Set Value to give values to variables: Var1, Var2, Var3, ... Var10
Var1 = 220
Var2 = 205
Var3 = 180
...
Var10 = 125
2) Later in the simulation, I search for different "recipes" in a DataMaster (using Filter), and would like to perform a calculation using a Factor in the recipe, with the value of the Variable listed
The objective is to build a recipe list, and not have to maintain values through the entire DataMaster. I'd like to maintain 10 variables in one place, and have a list of 1,000 recipes call the variables by name in order to get the variable value.
The variable used in each recipe wouldn't change.
Thanks so much again for any help!
I think I figured out how to do it. Will be working on it over the next few days.
I think I figured out how to do it. Will be working on it over the next few days.
Replies have been locked on this page!