SQLite revOpenDatabase() and Relative File Paths
Dr. Hawkins
dochawk at gmail.com
Thu Feb 20 13:07:34 EST 2014
On Thu, Feb 20, 2014 at 7:34 AM, Devin Asay <devin_asay at byu.edu> wrote:
> On Feb 19, 2014, at 10:54 PM, Kay C Lan <lan.kc.macmail at gmail.com> wrote:
>
>
> > get revOpenDatabase("sqlite","/Folder Name/mySQLite.db",,,)
>
> You don't need the leading "/" in the relative file path. With the
> defaultFolder set to the parent folder of Folder Name, you simply use
> "Folder Name/mySQLite.db" as the path.
>
It's more than "don't need." You *must not* do that if you want a relative
path. The leading / tells it to go the the root of the file system.
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
More information about the use-livecode
mailing list