In all my new activities, I have to add a code, which is always the same.
This code is motivated by a structural change. I have a class in which I always have to set up a process.
The Question is that my new code will be this, and I would like to know if there is any internal file, where I can adjust it so that when adding a new activity, it comes preloaded. Otherwise, obviously I will always have a copy and paste of my base activity
private Sub QryExe_QueryComplete (Success As Boolean, Crsr As JdbcResultSet)
Log("Ejecutada SQL")
''logdatabase STARTER.clsConnec.DBLocalSqlFinASYNC
End Sub
Sub Conexion_MsgBox(M1 As String, M2 As String )
MsgboxAsync(M1,M2)
End Sub
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
Starter.clsConnec.SetObject(Me)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
End Sub
Sub Activity_Resume
Starter.clsConnec.SetObject(Me)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub