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: Thu, 21 Jun 2007 09:27:52 +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> <075A7B10-A124-4577-A322-DBEFBF94BB33 at sqlabs dot net> <013b01c7b32c$9f7498a0$4800a8c0 at fiasa dot lan>
Strano... riprova con Str(db.ErrorCode) ... forse ci darà qualche informazione in più...
Il file "Taberna" esiste ed è un database vero?

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


On Jun 20, 2007, at 1:17 PM, Enrico a Libero wrote:

con i parametri endofline e db.errormessage non tira fuori nulla, ho provato singolarmente sui msgbox e sono 2 stringhe vuote, per quanto riguarda i permessi ho messo tutto lettura scrittura
Bo.. non saprei!

Grazie a tutti.

Enrico
----- Original Message ----- From: "Marco Bambini" <marco at sqlabs dot net>
To: "REALbasic NUG Italian" <realbasic-nug dot it at lists dot realsoftware dot 
com>
Sent: Tuesday, June 19, 2007 1:54 PM
Subject: Re: ReaSqlDatabase e linux


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>