Page 1 of 1
datagrid message
Posted: Fri Jan 13, 2012 6:31 pm
by kevin11
Hi,
I have a datagrid that seems to be working fine. However, whenever I visit the card that contains the datagrid, I get the following in the message box :
89,8781,22,dgAlternatingRows
77,8781,22
449,8781,9
535,8781,1
253,8759,1
241,8759,1,_DrawAlternatingRows
353,0,0,button id 1005 of group id 1004 of card id 1002 of stack "C:/Documents and Settings/Administrator/Application Data/RunRev/Components/LiveCode 4.6.3/Toolset/revdatagridlibrary.rev"
573,87,1
253,86,1
I am not asking anywhere for this to be displayed, and I can't get rid of it. If it is some sort of error message it is a particularly meaningless one.
Any thoughts please ?
Re: datagrid message
Posted: Fri Jan 13, 2012 6:41 pm
by mwieder
Define "working fine"
If it helps any, the thrown error of 89 is "no such object". It's being issued from the datagrid library at line 8781 (that's probably not much help), and the 573 error is "can't find handler" in line 87 of some script, possibly one of yours. Did you put code in the datagrid behavior script?
Re: datagrid message
Posted: Fri Jan 13, 2012 8:00 pm
by kevin11
mwieder wrote:Define "working fine"
If it helps any, the thrown error of 89 is "no such object". It's being issued from the datagrid library at line 8781 (that's probably not much help), and the 573 error is "can't find handler" in line 87 of some script, possibly one of yours. Did you put code in the datagrid behavior script?
By "working fine" I mean everything performs the way I want, and looks how I want.
My line 87 in the behaviours script merely puts a value into a variable, and commenting it out has no effect on the error message.
Looking at the datagrid library source code line 8781, it is complaining that about line :
set the text of image "dgAlternatingRows" of me to empty
so presumably it is complaining at the lack of an object "dgAlternatingRows". I do not believe I have created, amended, or deleted such a graphic. Do you know where I can get such an object ? Is it an optional purchase I have to make ?

Re: datagrid message
Posted: Fri Jan 13, 2012 8:18 pm
by mwieder
Hmmm. The "dgAlternatingRows" image is part of the datagrid group. So unless you deleted it somehow it should still be there. I suppose you might uncheck "alternate row colors" for the datagrid and see if the error goes away. That might give some clue as to what's going on.
Re: datagrid message
Posted: Fri Jan 13, 2012 8:44 pm
by kevin11
Good idea. My alternating row colours was always unchecked anyway.
If I now check it, I get alternating row colours, and the error message.
If I uncheck it, I don't get alternate colours, but the error message has gone away.
Quit the stack having saved it, reload
Checking alternates back on, no error message.
Turning off, no error message.
Can't do anything to get that error message back now.
However, this happened at the same time as I turned up the central heating, so it could well be temperature related.