01-27-2015 12:14 PM
How can i get the names of the controls inside a class private data?
I am using Actor Framework and trying to create a method tha will be executed when launch the actor. This method need a list o all the control names inside the class data to search for the initial value inside a configuration file (config.ini), the key on the configuration file will be the name of the control.
Thanks.
Solved! Go to Solution.
01-27-2015 12:28 PM
I would think the simpler solution would be to create a method in the class to read the right item in the configuration file.
01-28-2015 05:22 AM - edited 01-28-2015 05:23 AM
Ok thanks, its the way Im doing it (see the image). But, Im trying to find a better way because I need to modify every class method to read the correct values and pass then to the correct controls (using a unbundle by name on the object).
My idea is to have on the object private data the name of the key used on the configuration file, so I dont need to overwrite the method for every class. Any sugetion?
01-28-2015 05:01 PM
You are already making the overriding method just because you have to write to the Bundle By Name. And then how are you going to handle all of the data types the keys could be. You are making things more difficult than it should be for really very little benefit.