Now, you would say that this is simple, but in this example the validator returns 2 linenumbers and positions. And guess what!? I need the first linenumber and position in the message. I can only get the last position and linenumber using the ex.Position and ex.Linenumber. See Image below.
My code:
I need to get/extract Line 3, Position 10 from the error.Code:msgbox(ex.Message.ToString & vbNewLine & "Linenumber: " & ex.LineNumber.ToString & vbNewLine & "Position: " & ex.LinePosition.ToString)
Anyone?






Reply With Quote