Discussion:
GPF and new editor in grid.
(too old to reply)
Ivar B. Jessen
2004-01-20 16:22:59 UTC
Permalink
The following bug(s) were mentioned in the programming group by Rod Jones in a
posting with the heading: New grid editor not read-only?

Notice the following setting in the code below,

rowset.fields["Description"].readOnly = true

The bug to be described will also be seen with the setting,

rowset.autoEdit = false


Run the code and scroll to the 'Description' column, click on the first row
and the editor opens. Try editing the text and confirm that it is read-only.
Close the editor by clicking on a different column or row. This results in,

Alert
Error: Property is read only.

Click OK and click on the second row to open the editor in that row. Notice
that it is not possible to open said editor.

After attempting to open the editor in other rows I generally end up with a
GPF.

Notice also that if the setting is,

GRID1.allowEditing = false

it is impossible to open the editor and thus impossible to read more than the
first line of text.


Ivar B. Jessen
Marc Hamelin
2004-01-20 16:52:36 UTC
Permalink
Huh... Where's the code you're talking about, Ivar?

Marc Hamelin
Ivar B. Jessen
2004-01-20 18:26:04 UTC
Permalink
On Tue, 20 Jan 2004 11:52:36 -0500 , in dbase.bug-reports , Re: GPF and new
Post by Marc Hamelin
Huh... Where's the code you're talking about, Ivar?
Oh boy, done it again :-(


Ivar B. Jessen

//-----
** END HEADER -- do not remove this line
//
// Generated on 20-01-2004
//
parameter bModal
local f
f = new newEditorForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif

class newEditorForm of FORM
with (this)
height = 8.8182
left = 20.0
top = 2.0455
width = 55.7143
text = ""
autoCenter = true
endwith

this.DBASESAMPLES1 = new DATABASE()
this.DBASESAMPLES1.parent = this
with (this.DBASESAMPLES1)
left = 6.0
top = 0.5
databaseName = "DBASESAMPLES"
active = true
endwith

this.FISH1 = new QUERY()
this.FISH1.parent = this
with (this.FISH1)
left = 1.0
top = 0.5
database = form.dbasesamples1
sql = "select * from fish.dbf"
active = true
endwith

this.GRID1 = new GRID(this)
with (this.GRID1)
dataLink = form.fish1.rowset
allowEditing = false
height = 7.5
left = 1.0
top = 1.0
width = 54.0
endwith

this.rowset = this.fish1.rowset
endclass
//-----

Ken Mayer [dBASE, Inc.]
2004-01-20 16:56:23 UTC
Permalink
Post by Ivar B. Jessen
Notice the following setting in the code below,
What code? There was no code in your message.
Post by Ivar B. Jessen
rowset.fields["Description"].readOnly = true
The bug to be described will also be seen with the setting,
rowset.autoEdit = false
Tried your steps with this and can see problems except for the GPF. I
then changed autoEdit to true, and set the description field (of the
Fish table)'s readOnly property to true, and got the same results, but
no GPF.

I've entered QAID: 4665 for this.
Post by Ivar B. Jessen
Notice also that if the setting is,
GRID1.allowEditing = false
it is impossible to open the editor and thus impossible to read more than the
first line of text.
This issue is addressed by the bug report: QAID: 4350.

Ken
---
Ken Mayer [dBASE, Inc.]
** Please respond ONLY in the newsgroups **

"Think OOP"

dBASE, Inc. website: http://www.dbase.com
Ivar B. Jessen
2004-01-20 18:34:58 UTC
Permalink
On Tue, 20 Jan 2004 08:56:23 -0800 , in dbase.bug-reports , Re: GPF and new
Post by Ken Mayer [dBASE, Inc.]
Post by Ivar B. Jessen
Notice the following setting in the code below,
What code? There was no code in your message.
It's been posted, but I see you used your crystal ball so it is not really
neccessary.
Post by Ken Mayer [dBASE, Inc.]
Post by Ivar B. Jessen
rowset.fields["Description"].readOnly = true
The bug to be described will also be seen with the setting,
rowset.autoEdit = false
Tried your steps with this and can see problems except for the GPF. I
then changed autoEdit to true, and set the description field (of the
Fish table)'s readOnly property to true, and got the same results, but
no GPF.
I've entered QAID: 4665 for this.
Thanks.


Ivar B. Jessen
Loading...