Sergio Haurat Active Member Licensed User Longtime User Mar 7, 2014 #1 I need to implement an execution error event at runtime. Something like this (the code is generic): Code: Copy Sub TestSub(Index as Int) If Index > 0 Then MsgBox("Correct!", "Example") Else Throw OutOfRange("bla bla bla") End If End Sub Something like this http://msdn.microsoft.com/en-us/library/xhcbs8fz(v=vs.110).aspx
I need to implement an execution error event at runtime. Something like this (the code is generic): Code: Copy Sub TestSub(Index as Int) If Index > 0 Then MsgBox("Correct!", "Example") Else Throw OutOfRange("bla bla bla") End If End Sub Something like this http://msdn.microsoft.com/en-us/library/xhcbs8fz(v=vs.110).aspx
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2014 #2 You can use ExceptionEx from the Threading library. Upvote 0
Sergio Haurat Active Member Licensed User Longtime User Mar 9, 2014 #3 I could not find a clear example. It is like the example of "#Event", where the calendar is based on other things with code. Post #9 to #13 http://www.b4x.com/android/forum/th...include-pre-defined-events.28297/#post-228527 Upvote 0
I could not find a clear example. It is like the example of "#Event", where the calendar is based on other things with code. Post #9 to #13 http://www.b4x.com/android/forum/th...include-pre-defined-events.28297/#post-228527