Xojo Conferences

Setting databasefile at runtime (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: REALbasic $50 in bundle
Next thread: Cursor Location

Re: RB Company.   -   Rubber Chicken Software Co.
  Setting databasefile at runtime   -   Roger Clary

Setting databasefile at runtime
Date: 05.08.09 02:59 (Tue, 4 Aug 2009 21:59:58 -0400)
From: Roger Clary
I want to allow my users to be able to change the location of the
REALDB file the app uses.
When the user creates a folderitem named remoteDB via the SelectFolder
method, I do

MSData.DatabaseFile = remoteDB
if MSData.Connect = false then
end if

however, at the next read of the DB, the old location is read...and
continues to be read until the next app launch.

I have inspected the .databasefile property in the debugger and it is
shown correctly after the above call.
Can't figure out why my app continues to use the former setting.

Is there something else I need to set to get the DB to read from the
new location?


Roger Clary
<email address removed>
Class One Software
Educational Software for Lifelong Learning

Unsubscribe or switch delivery mode:

Search the archives: