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>
|