realbasic-nug.it
[Top] [All Lists]

Re: ReaSqlDatabase e linux

To: REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com>
Subject: Re: ReaSqlDatabase e linux
From: Marco Bambini <marco at sqlabs dot net>
Date: Tue, 19 Jun 2007 13:54:41 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug dot it at lists dot realsoftware dot com
References: <2B1315688A9E443B8F524B479EAD3FBA at PCMario> <B876315C-7FC8-4D5B-8016-6C9D1E3CB454 at omnidea dot it> <007c01c7b25e$90a74620$4800a8c0 at fiasa dot lan>
Modifica il messaggio d'errore con:

....
else
        Beep
        MsgBox "The database couldn't be opened." + EndOfLine + db.ErrorMessage

cosi almeno si può sapere con certezza cosa c'è che non va ;-)

--
Marco Bambini
REAL Software, Inc.
http://www.realsoftware.com


On Jun 19, 2007, at 12:42 PM, Enrico a Libero wrote:

Salve a tutti, ho fatto un piccolo programma per catalogare dei libri, sotto win e mac nessun problema ad accedre all'archivo, sotto linux non riesco a connetere il db. Ho utilizzato il RealSqlDatabase per praticità di trasporto ed installazione (1 file eseguibile ed un file per il db)
La connessione è sempre la stessa o dove cambiare qualche cosa?
Codice:
 //INIZIALIZZAZIONE RB-SQLDATABASE

 Dim dbFile as FolderItem
 Dim db as REALSQLdatabase
 dim rec as DatabaseRecord
 dim rs as RecordSet
 dim i as integer
 dim v as String
 db= New REALSQLdatabase
 dbFile = GetFolderItem("Taberna")
 db.DatabaseFile=dbFile
 rec=new DatabaseRecord
 If db.Connect() then
   //proceed with database operations here..
 else
   Beep
   MsgBox "The database couldn't be opened."
 end if

 //FINE INIZIALIZZAZIONE RB-SQLDATABASE

Grazie sempre a tutti.

Un saluto
Enrico




<Prev in Thread] Current Thread [Next in Thread>