Deleting code in the editor

At 1 point I started to have GPF's all over the preview. And some time later I found out what was going on... I've got the habbit of deleting empty procedures in the code editor, but that seems not to be done in FastReport. Events, are after that, wrong connected to the wrong objects. Just by walking the tree with the events in the property inspector I was able to correct the false links. Is it correct, is it forbidden to delete empty procedures? And if so, shouldn't this be made impossible as now I debugged too long on something that should not be a problem at all!

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:15AM
    if you remove an empty procedure that was created by dblclick in the object inspector event tab, then you must remove that refrence also.
    ;)
  • edited 12:15AM
    ok, I noticed, but shouldn't that be written with VERY LARGE LETTERS IN THE MANUAL because if you don't do it, you end up with good events connected to wrong objects, and that only because you wanted to clean up some things. I really think there should some code in Fastreports which handels this. Pointers to functions just get too easyly messed up. The performance penalty of some milliseconds are worth it as debugging, what, why, takes much longer, at least on my side!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.