[code] Dim dbitem As FolderItem = GetOpenFolderItem("")
Dim eaBasic AS New SQlitedatabase
If dbItem <> Nil And dbItem.Exists Then
eaBasic.DatabaseFile = dbitem
If eabasic.Connect Then
MsgBox("Connected to database successfully!")
Else
MsgBox("DB Connection Error: " + eabasic.ErrorMessage)
End If
End If[/code]
Definitions in Modul1:
eabasic is a global Sqlitedatabase
the above code is in the open-event of the APP
Here it works and I can get Datas from the db
But afterwards, in any other window, though I am connected to the db (have the same question there) I cannot get any data.
Only if I do again the getfolderitem-converstion, but this cannot be the sense, to choose the db 60 times …