Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim sql1 As SQL
End Sub
Sub consulta(textosql As String)As Cursor
If sql1.IsInitialized = False Then
sql1.Initialize(File.DirRootExternal, "/nombrecarpeta/nombrebd", True)
End If
Dim Cursor As Cursor
Cursor = sql1.ExecQuery(textosql)
Return Cursor
'sql1.Close
End Sub
Sub anadirnuevoregistro (textosql As String) As Boolean
If sql1.IsInitialized = False Then
sql1.Initialize(File.DirRootExternal, "/nombrecarpeta/nombrebd", True)
End If
Try
Dim Cursor As Cursor
'Cursor = sql1.ExecNonQuery(textosql)
Return True
Catch
Return False
End Try
End Sub