Hello,
I have a remote view populating a grid. The form has a 'Cancel' command button. In the click event of the Cancel button I have:
IF THISFORM.QueryUnload()
THISFORM.Release
ENDIF
The QueryUnload method:
SELECT myView
GO TOP
IF GETNEXTMODIFIED(0) # 0
ENDIF
RETURN
The grid has the focus. No other operations are done. I am positive about that.
I don't understand why GETNEXTMODIFIED() pops up showing some modified records even I simply scroll the grid, using cursor keys. More than that: if I do _not_ scroll the grid, but press the Escape key, GETNEXTMODIFIED pops up; but if I press Alt+Cancel button's hot key, it doesn't pop up. It looks to me the records change their 'changed' condition no matter if the user changes the record or not.
The second problem: suppose I have the same view in DE, and some controls bound to it. If a checkbox, bound to a logical field, set as .Readonly = .T., is clicked, GETFLDSTATE and GETNEXTMODIFIED keep pointing the record, even no change is made.
I know how to workaround those two problems, but my question is why these things happen and how to avoid them.
Any idea is appreciated.
Thank you.
Grigore Dolghin
Class Software.