Is there any advantage of using named Constants instead of Error Integer Value?
Readability, and in case (very probable not to happen) the value actually changes, you don't have to fix your code. - So if MQ decides to assign new numbers to the errors, the named constants will update automatically. All you would require is a recompile, but not an editing.
Like this?
Almost. You are using the integer values 0 and 4000. You should be using the named constants.
I didn't understand?. Named Constants? Can you explain me or give me sample/example code. So, i can write my code based on it.
Got it. Thanks for clarification.
Is there any advantage of using named Constants instead of Error Integer Value?
Got it. Thanks for clarification.
Is there any advantage of using named Constants instead of Error Integer Value?