On Aug 12, 2006, at 11:36 PM, Dr Gerard Hammond wrote:
I am trying to create a REAL SQL database as a local file on my
local Mac.
dbLocal.databaseFile=dbFile '
If dbLocal.CreateDatabaseFile then //proceed with database
operations...
dbLocal.sqlexecute("CREATE TABLE Prefs (Key varchar(25) NOT
NULL, Value varchar(255), PRIMARY KEY(Key), UNIQUE(Key))")
if dbLocal.ErrorMessage<>"" then
msgbox dbLocal.ErrorMessage
end
end
Check dbLocal.Error and if there is one it will be set correctly.
Don't rely solely on the ErrorMessage being ""
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>