TheRealDude Posted July 21, 2021 Report Share Posted July 21, 2021 How in the world do you declare an Enum?!! Normally it would be "Enum doodaa {one, two, three};", right? it no workie! Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted July 22, 2021 Report Share Posted July 22, 2021 you would declare it outside of the main function. Are you doing that? Quote Link to comment Share on other sites More sharing options...
TheRealDude Posted July 22, 2021 Author Report Share Posted July 22, 2021 I tried it as a global declaration and then inside the MainCalc when that didn't work...I think. I'll try it again! Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted July 22, 2021 Report Share Posted July 22, 2021 I did a little test to show: public void MainCalculation() { if (Close > Close[1]) { SetColor("High", SysColor.Positive); } testEnum myVariable = testEnum.Three; }enum testEnum { One, Two, Three, Four } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.