davepamn Active Member Licensed User Longtime User Dec 10, 2014 #1 B4X: Sub ShowLastException(sSubjectLine As String) Dim ex As String Dim stripEX As String ex=LastException.Message stripEX=ex.SubString(28) Msgbox(stripEX,sSubjectLine) End Sub The compiler says that LastExpection.Message does not exist I used LastExpection.Description It seems to compile
B4X: Sub ShowLastException(sSubjectLine As String) Dim ex As String Dim stripEX As String ex=LastException.Message stripEX=ex.SubString(28) Msgbox(stripEX,sSubjectLine) End Sub The compiler says that LastExpection.Message does not exist I used LastExpection.Description It seems to compile
stevel05 Expert Licensed User Longtime User Dec 10, 2014 #2 We need some more context, why are you calling the sub in the first place? Upvote 0
davepamn Active Member Licensed User Longtime User Dec 12, 2014 #3 I wrapped the error handling in a class module Upvote 0