dyn_float dfValues;
int i =1;
dfValues[i] = 123.4;
But this does not compose a variable name using strings. In most cases you don't need to do this anyway.
I don't know what problem you try to solve but try to use lists or maps to structure the data.
Avoid defining variable references during runtime. In general this will make the code hard to read and predict.
Re: How to address a variable name by combining strings
Postby dvribeira »
I will not get to rewriting what you want, but to give you a hint, you can generate a script, i.e. write it to a string, and then execute it with evalScript() or execScript().
Re: How to address a variable name by combining strings
Postby leoknipp »
If you are defining the dp elements for the dpConnect() element by element do not pass a dyn_string to the dpConnect() it is possible better and easier to read when you do not use dyn_arrays in the work function.
In the work function you see then directly which dp elements and which value belongs to which dp elements in the dpConnect() call.
Best Regards
Leopold Knipp
Senior Support Specialist