Quote:
Originally Posted by sst.thad
Inside each loop is a case structure with an enum for 3 modes, which are init, run and end.
|
Just be careful with Enums like this. This is very common practice BTW, and one method to keep your code isolated. Your action Enum, (Init|work|end) should always be a TypeDefd control. This also presents the possibility of the constant value automatically changing if the typedef is updated. I typically will write the desired value as a BD note, next to the Enum constant.