iOS Question How do I display Error message

davepamn

Active Member
Licensed User
Longtime User
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
We need some more context, why are you calling the sub in the first place?
 
Upvote 0
Top