Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim cDbIP As String :cDbIP="192.168.1.5"
Dim cDataBase As String :cDataBase="joomla"
Dim cDbUserName As String :cDbUserName="root"
Dim cDbPassword As String :cDbPassword="*******"
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.
Private oConnection As MySQL
End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Try
oConnection.Initialize("anser", cDbIP, cDbUserName, cDbPassword, cDataBase, True, True)
Catch
Msgbox("Unable to connect to the server","Server unavailable")
End Try
End If
End Sub