Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

How can I check database is opened?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-29-2008, 03:58 AM
Newbie
 
Join Date: Aug 2008
Posts: 8
Default How can I check database is opened?

Before I use "DataConnect.Open("Data Source = " & AppPath & "\cisa.sl3")" , How can I check whether database is opened or not?
Reply With Quote
  #2 (permalink)  
Old 08-29-2008, 05:10 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

It could only be opened if you already opened it. So you can use a global variable to save its state:
Code:
Sub Globals
 DBOpened = 
false
End Sub
...
If DBOpened = false then
  DataConnect.Open(...)
  DBOpened = 
true
End If
Reply With Quote
  #3 (permalink)  
Old 08-29-2008, 09:18 AM
Newbie
 
Join Date: Aug 2008
Posts: 8
Default TKS Erel

TKS, Erel .

I've soluted as the same code yr puted. Tk y very much.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check for duplicates moster67 Questions (Windows Mobile) 2 09-07-2008 06:58 AM
Copy Record from one database to another database. mozaharul Questions (Windows Mobile) 0 07-15-2008 04:47 AM
Check for Sub existance Scubaticus Questions (Windows Mobile) 4 11-04-2007 09:54 PM
How to convert an Access database to a sqlite database Peter Code Samples & Tips 5 07-24-2007 03:20 PM
Treeview and check-boxes BjornF Questions (Windows Mobile) 2 06-26-2007 03:45 PM


All times are GMT. The time now is 10:19 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0