11-28-2019 09:11 AM
Hello,
I have made this program and I would like to change one state on the case structure. I want to put "codificando" instead of "Fin OK" but if I change the name in Edit Items of the Enum all the cases of the case structure change and instead of appearing the names, appears 0,1,2,3
How can I change only one name without moving all the cases.
11-28-2019 09:12 AM
This is my program
11-28-2019 09:28 AM
This happens because the enum constants in your program are not automatically updated.
You could manually change them all, but there is a better way: make your enum a typedef. Then, recreate all the constants.
When you make changes to a typedef and then apply changes, they are applied to all typedef instances: controls, indicators, constants.
11-29-2019 02:40 AM
I make type def. but it doesn´t work.
This is my program
11-29-2019 02:55 AM
You did not recreate the constants. It's necessary because they must be typedef'd too.
Once all controls and constants are a typedef, you can change strings (add values, remove values) with a minimal work on the program.