I have created three standalone with SQLite on a Mac. In Application Settings, in Copy Files,
1- I have not put anything.
2- I added the file
3- I have added the file and marked Copy Referenced Files
None works for me, it does not find the database. I get a message putting the Path and it's the right one.
Code: Select all
command openConection
put specialFolderPath("documents") into tDBPath
put "/Lloguers.db" after tDBPath
put revOpenDatabase("sqlite", tDBPath, , , , ) into gDBID
if gDBID is not an integer then
-- answer question "No s'ha pogut connectar amb la base de dades. Comprovi que existeixi." with "Sortir"
answer question "Error - Unable to connect to the database" with "Exit"
else
hide button "btnConexio"
show group "grpMenu"
end if
answer info "Current path:" && tDBPath with "OK"
end openConection
Thanks in advance,
Carles