gettingstarted
[Top] [All Lists]

Re: Type Mismatch Error. Expected REALSQLDatabase, but got Database -- I

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Type Mismatch Error. Expected REALSQLDatabase, but got Database -- IS THIS A BUG?
From: Kirt Cathey <kirtcathey at gmail dot com>
Date: Sat, 1 Oct 2005 09:51:36 +0900
Delivered-to: gettingstarted at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=nn6X2FCJvpcE9Av83zs1aQ97aUo8+DfjZJu4qAKFQMLUbXLQnk9NRABHacZxjvVPrCKCZLK8SM799bj8wf7Lf2CcgLpLR8MdkmpJKc8pnvFshtwMD4EhvznpWbt7/Kj52TUaFp01QqCXA4y+KVJqWSSDcB+1FV4tBlo45BJuJt4=
References: <e92176170509301625h3c440f82i51d3f5fe874566f1 at mail dot gmail dot com> <45A2038B-9DA8-4525-980A-02942B401C6A at webguide dot com dot au>
Kim,

Awesome. Thanks alot. In the mean time, I read further to finally realize
that REALSQLDatabase is a subclass of database.
Also, that databaseFile returns a folderitem.

Thanks for the help.

On 10/1/05, Kim Kohen <kim at webguide dot com dot au> wrote:
>
> On 01/10/2005, at 9:25 AM, Kirt Cathey wrote:
>
> > How to create a REAL SQL Database? Is this a BUG? Is ANYBODY using
> > REAL SQL
> > Database successfully?
> > dim db as REALSQLDatabase
> > db=WorkPapersDB //The compiler stops here with the type mismatch
> > error.
> ••••
> I'll preface this by saying I've never used a Real DB - only Postgres
> or MySQL. I did a quick test by copying the example from the language
> reference and this seemed to work.
>
> Dim dbFile as FolderItem
> Dim db as REALSQLdatabase
> db= New REALSQLdatabase
> dbFile = GetFolderItem("WorkPapersDB.rsd")
> db.DatabaseFile=dbFile
> If db.Connect() then
> MsgBox "Connected"
> // do stuff here - inserts, selects etc
> else
> Beep
> MsgBox "The database couldn't be opened."
> end if
>
> cheers
>
> kim
>
> _______________________________________________
> 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>
>



--
Kirt Cathey
WorkPapers Development
_______________________________________________
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>
<Prev in Thread] Current Thread [Next in Thread>