I have routines in my Library Code that if an Error occurs checks if there is a ErrorMsg Routine and if so calls it. But because these routines are not available when compiling the library I get a ton of Warning #25 messages that are really helpful
The above code generates warning #25 in my code because "ErrorMsg" does not exist.
I do not want to do a blanket #IgnoreWarnings: 25 because that might hide something that could be a problem
Is there someway to do something like this
This way the Warning 25 will only be ignored around that group of code?
BobVal
B4X:
Try
... ' Some Code
Catch
If SubExists(mCallRoutine, "ErrorMsg") Then
CallSubDelayed3(mCallRoutine, "ErrorMsg", LastException.Message, "Work Routine Name")
End If
End Try
The above code generates warning #25 in my code because "ErrorMsg" does not exist.
I do not want to do a blanket #IgnoreWarnings: 25 because that might hide something that could be a problem
Is there someway to do something like this
B4X:
Try
... ' Some Code
Catch
#IgnoreWarnings: Push 25
If SubExists(mCallRoutine, "ErrorMsg") Then
CallSubDelayed3(mCallRoutine, "ErrorMsg", LastException.Message, "Work Routine Name")
End If
#IgnoreWarnings: Pop 25
End Try
This way the Warning 25 will only be ignored around that group of code?
BobVal