At 12:32 PM -0600 13/8/06, Norman Palardy wrote:
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 ""
Hi Norman,
For this one I did.
.error was TRUE
.ErrorNumber was 7
I wonder what is going on.
I am using R3 on a PPC G4 laptop.
--
Cheers,
Dr Gerard Hammond
MacSOS Solutions
_______________________________________________
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>