03-21-2012 07:43 AM
Your approach is not practical. You cannot have code modify itself, so you're simply going to have to deal with that limitation. Welcome to the universe.
I would suggest looking at saving this information in an external file. That way you can read in this list of labels and use a ring.
03-21-2012 07:51 AM
"array of strings, and I would like edit a ready existing Enum so that the currently existing values become that in the array."
If you want to change the programming variable, you can replace the enum with a string control, change that and then replace it with an enum and you'll have the updated control. It will only work while developing though.
/Y
03-21-2012 08:44 AM
your code could be greatly simplified by using cluster to array and array to cluster. (Which begs the question "Why a cluster at all when an array would be more practical?)
03-21-2012 10:32 AM
I still think what I have done it fitter than array to cluser, because array to cluster does not create self documenting code...
From my original code, I have turned the enum to type def, and I have my solution
05-15-2013 04:19 PM
Hi
I had simmilar issue,when I need to enter 100 values into Enum.
So what you need to do is
1. Reaplce your Enum with Ring
2. Use the "Strings[]" for the ring to populate your control
3. Replace back to Enum
4. Create a type def out of this new Enum
It works at least for me 🙂
05-15-2013 04:19 PM
Hi
I had simmilar issue,when I need to enter 100 values into Enum.
So what you need to do is
1. Reaplce your Enum with Ring
2. Use the "Strings[]" for the ring to populate your control
3. Replace back to Enum
4. Create a type def out of this new Enum
It works at least for me 🙂