To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=64427





------- Additional comments from [EMAIL PROTECTED] Mon Apr 17 03:52:46 -0700 
2006 -------
First - I tried the macro that reports to cause the crash using build 162 and 
it does not crash, does not even report an error.

I believe there is actually a problem with the evaluation of the isAfterLast
function, however.

To show why you can do the following:

1) Create a base database with one table, any structure, with a PK
2) Create a form in the database with two controls - a tableGrid, a button. The
table grid displays the data from the empty table.
3) Enter this macro in a library and assign it to the 'When initializing' event
for the button.

sub CountRows( oEv )
with oEv.Source.Model.Parent
        print .rowCount
        print .isBeforeFirst
        print .isAfterLast
end with

4) Open the form with an empty table and place the cursor in any cell. (Don't
enter a record, just place the cursor in a cell)
5) pressing the button will produce the following output
    0
    False
    True
6) Enter any data in the cell, and post the record. Pressing the button again
will produce, leaving the cursor in the just entered row.
    1
    False
    False
7) Move the cursor to a cell in the InsertRow and click the button again - the
same results are displayed. 

isAfterLast will never return true if there is any data in the table, but does
if there is none. This is, I think, inconsistent at least. It would seem to me
that the behavior should be that of isBeforeFirst - of course that could mean
that isBeforFirst is deemed incorrect instead.

The bottom line is that these functions behave differently when the rowset
object is wrapped by a DatabaseForm object. I do not think the tableGrid object
is really the issue here, at all.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to