Hello,
Edit : It's not really due to DBUtils i think, but i want to use a modified DBUtils module in my code, that's why i put this title.
I have an interrogate.
I get a Warrning # 1 (Unreachable code detected) in the IDE when i uses this code
But in example given by SQL Library, it's exactly like that it's showed how to use Begin/EndTransaction.
I know i can ignore the warning, but if someone can tell me why ?
Thanks.
Laurent.
Edit : It's not really due to DBUtils i think, but i want to use a modified DBUtils module in my code, that's why i put this title.
I have an interrogate.
I get a Warrning # 1 (Unreachable code detected) in the IDE when i uses this code
B4X:
Sub TestWarning1(SQL As SQL) As String
SQL.BeginTransaction
Try
'Do anything you want
SQL.TransactionSuccessful
Return "Ok"
Catch
Return LastException.Message
End Try
SQL.EndTransaction
I know i can ignore the warning, but if someone can tell me why ?
Thanks.
Laurent.
Last edited: