Since no reaction, here I am again:

Emile

-------- Original Message --------
From: - Wed Apr 12 14:03:20 2006
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
Message-ID: <[EMAIL PROTECTED]>
Date: Wed, 12 Apr 2006 09:55:15 +0200
From: Emile Schwarz <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: REALbasic Network Users Group <[email protected]>
Subject: REALSQLdatabase example in the Embeded Language Reference
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


<Later update: you do not need to use three MenuItems...>

Hi,

REALbasic 2005r4
Mac OS X 10.4.6
Macintosh PowerBook G4 15" Alu (08-2004)


Power on the Macintosh,
Run REALbasic 2005r4,
Open the Menu Editor,
        Create a Menu: REAL SQL
        Create three MenuItems:
                Create (Command-Shift-N)
                Open   (Command-Shift-O)
                Write  (Command-Shift-W)

[REALSQLdatabase: NOW!]

Open the Embedded Language Reference,
Go to the REALSQLdatabase Class entry,

Open Window1,
create three Menu Handlers:
        REALSQLCreate
        REALSQLOpen
        REALSQLWrite

create three Methods
        CreateDB
        OpenDB
        WriteDB

place in each MenuHandler a call to the three Methods
        In REALSQLCreate, put CreateDB; in REALSQLOpen, put OpenDB
        and in REALSQLWrite, put WriteDB.

In the REALSQLdatabase Class, copy / paste the three code examples in the three
related Methods... [code to create a DB in CreateDB, code to open an existing DB
in OpenDB, code to add a record in a db in WriteDB]


Save using a name the project,
Run and get:

<b>Internal Error</b>
An unhandled NilObjectException has occured. ETC

<Continue> <Quit>


--
No, this message is complete :(
and yes, I am angry :(




_______________________________________________
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