I have a class constant that I have set with a numeric value in the IDE at run time. I have a shared method in the class that uses the constant and at run time the value is zero. In the IDE it has a numeric value of 28.35.
I didn’t think that was possible, given that it’s a constant.
The code is part of a larger project that would be problematic for me to post, but I replicated my workflow in a test project that I have attached. The thing is, it works as I expected in this project.
It doesn’t in my real project. Did I mess this up somehow?
This is a screenshot of my actual code so you can see what I’m doing:
This is my UnitConversion class, with my shared (static) method:
it’s called by this method, CalculateLandedCost: