취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

change state

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.

0 포인트
1/5 메시지
2,834 조회수

This is my program

0 포인트
2/5 메시지
2,832 조회수

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.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 포인트
3/5 메시지
2,815 조회수

I make  type def. but it doesn´t work.

This is my program

0 포인트
4/5 메시지
2,757 조회수

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.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 포인트
5/5 메시지
2,753 조회수