Hi, all!

        On Mon, 1 May 2006 22:38, I wrote:

Don't both trying to subclass a Database of any kind as it does not
work.
Use extend methods if you need to add functionality to them.

        Okey.

The first set of code is fine.
It works here for me and there's no internal error.

What error are you getting ?

        SDB.error = TRUE
        SDB.errorCode = 1
        SDB.errorMessage = "internal error"

What version of RB ?

RB 2006 r2; and I've tried RB 2006 r1 and RB 2005 r4. I get the same result from all three.

A few minutes after I posted the response above, I tried the following code and built an application instead of running it under the aegis of the IDE, i.e., Project -> Run.

        dim SDB as REALSQLDatabase
        SDB = new REALSQLDatabase

        if SDB.error then
                MsgBox "Your error was " _
                        + Format(SDB.errorCode, "-0")
        else
                MsgBox "No error was made."
        end if // SDB.error?

        In the built application, no error is generated, but in the IDE it is.

        -- Charles.
_______________________________________________
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>

Reply via email to