Hi
I'm using Try/Catch statements like the below to make sure that my error is what I expect it to be...
I have other similar checks on the .Message string... BUT the issue obviously is that the string I am testing for will not match in non-English languages... what is typically done to deal with this? Am I doing something inappropriate, etc?
Many thanks!
I'm using Try/Catch statements like the below to make sure that my error is what I expect it to be...
VB.NET:
Catch Exception_Type As XmlException
If (Exception_Type.Message = "Root element is missing.") Then
MsgBoxPrompt = "ADG MatchMaker.xml Structure INCORRECT" _
& vbCrLf & vbCrLf & "Re-Open MatchMaker XML Editor"
MsgBoxTitle = "Initializing CORRUPT MatchMaker.xml"
MsgBoxReply = MsgBox(MsgBoxPrompt, vbExclamation, MsgBoxTitle)
Call Generate_MatchMaker_XML()
Me.Close()
Me.Dispose()
End If
I have other similar checks on the .Message string... BUT the issue obviously is that the string I am testing for will not match in non-English languages... what is typically done to deal with this? Am I doing something inappropriate, etc?
Many thanks!