F fishworld2006 Member Aug 29, 2008 #1 :sign0085:Before I use "DataConnect.Open("Data Source = " & AppPath & "\cisa.sl3")" , How can I check whether database is opened or not?
:sign0085:Before I use "DataConnect.Open("Data Source = " & AppPath & "\cisa.sl3")" , How can I check whether database is opened or not?
Erel B4X founder Staff member Licensed User Longtime User Aug 29, 2008 #2 It could only be opened if you already opened it. So you can use a global variable to save its state: B4X: Sub Globals DBOpened = false End Sub ... If DBOpened = false then DataConnect.Open(...) DBOpened = true End If
It could only be opened if you already opened it. So you can use a global variable to save its state: B4X: Sub Globals DBOpened = false End Sub ... If DBOpened = false then DataConnect.Open(...) DBOpened = true End If
F fishworld2006 Member Aug 29, 2008 #3 TKS Erel TKS, Erel . I've soluted as the same code yr puted. Tk y very much.