gettingstarted
[Top] [All Lists]

Can't connect to database

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Can't connect to database
From: Wayne Dreier <realbasicnovice at MacDialUp dot com>
Date: Sun, 30 May 2004 22:30:04 -0400
Delivered-to: gettingstarted at lists dot realsoftware dot com
List-help: <mailto:gettingstarted-request@lists.realsoftware.com?subject=help>
List-id: Getting Started <gettingstarted.lists.realsoftware.com>
List-post: <mailto:gettingstarted@lists.realsoftware.com>
I'm working on a project and created a database. In my front end application in the open event of the window I copied the code from page 409 of the LR which gives an example of how to open an existing REALdatabase.

Here is the code:

  Dim DbFile As FolderItem
  Dim DB As REALdatabase
  DB = New REALdatabase
DbFile = Volume(0).Child("Users").Child("waynedreier").Child("Documents").Child(" Real Basic Files").Child("SourceLogDatabase")
  DB.DatabaseFile = DbFile
  If DB.Connect() Then
    MsgBox "Database exists"
  Else
    Beep
    MsgBox "Error message: " +DB.ErrorMessage
  End If

The code runs but shows a message box "Error message: " and no error code. I think I know why it is showing an error. Even though the database is in the file in the parent-child path I use, the exist property is showing false.

I don't understand how that can be?

Any suggestions on what I should do to get this database open?

Wayne Dreier
Using OS X 10.3.3
Using RB 5.5.2
_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>