1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

How can I check database is opened?

Discussion in 'Questions (Windows Mobile)' started by fishworld2006, Aug 29, 2008.

  1. fishworld2006

    fishworld2006 Member

    :sign0085:Before I use "DataConnect.Open("Data Source = " & AppPath & "\cisa.sl3")" , How can I check whether database is opened or not?
  2. Erel

    Erel Administrator Staff Member Licensed User

    It could only be opened if you already opened it. So you can use a global variable to save its state:
    Sub Globals
     DBOpened = 
    End Sub
    If DBOpened = false then
      DBOpened = 
    End If
  3. fishworld2006

    fishworld2006 Member

    TKS Erel

    TKS, Erel .

    I've soluted as the same code yr puted. Tk y very much.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice