Set DB Location

Creating desktop or client-server database solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
dantomlin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 43
Joined: Tue Feb 26, 2008 4:07 pm

Set DB Location

Post by dantomlin » Wed May 15, 2013 8:22 pm

When I built my program, I stored the location of the sqlite database in a field with the ability to change that location by clicking on a button. Then, I built my standalone. Now when using the standalone, I can change the location of the database and the program works but when I open the program again, the database location is the location of when I built the standalone, its not the location of when I last in the program.

How do I have a user change the database location and have the program remember it the next time the program opens?

Do I have to store it in an external file? I was trying to avoid that...

Thanks, Dan

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Set DB Location

Post by Mark » Thu May 16, 2013 12:24 am

Hi Dan,

Yes, you have to use an external file. You can't avoid that. Standalones can't modify themselves.

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply