Forum Discussion
tristaanogre
7 years agoEsteemed Contributor
Well, the second block of code you are explicitly setting the value so the case statement doesn't really matter if it works correctly or not.
So... the question is, when you set your breakpoint on your first block of code at the beginning of the case statement, if you bring up a Watch window on varsp1, what is the value?
Keep in mind that the case statement is looking at the value of that parameter and attempting to compare it to a string of 'CBOSabreID0'. If the string is not an EXACT match, the case will never trigger. Additionally, if varsp1 doesn't actually CONTAIN a string, the case will never trigger. So... best debugging is to figure out what is being passed in and determine if the case you have defined is actually being met.