none
ErrorTask RRS feed

  • Question

  • I'm adding ErrorTask items to my Error List through my ErrorListProvider.  I am setting the Line property on each ErrorTask item, but the values show up in the list 1 greater than the value I specified.  Is this the way it is supposed to work?

    Thanks,

    Mike

    Tuesday, March 21, 2006 8:02 PM

Answers

  • Hi Mike,

      Yes that is correct behaviour. The line number that you pass in to your Task object is 0 based.

    Hope that helps.

    Regards

    Dr. eX

    Thursday, March 30, 2006 12:13 AM

All replies

  • In addition, it seems the internal value being stored is correct.  The object I receive in my eventhandler when I double click is the correct value, so somehow the visual representation is corrupt?
    Tuesday, March 21, 2006 8:13 PM
  • Hi Mike,

      Yes that is correct behaviour. The line number that you pass in to your Task object is 0 based.

    Hope that helps.

    Regards

    Dr. eX

    Thursday, March 30, 2006 12:13 AM
  • Ok, with that in mind, in order for this to work correctly I have to subtract 1 from the actual line number when I'm adding the task and add 1 to the line number in my navigate handler to get it to select the correct line in the file.

    Thanks,

    Mike

    Thursday, March 30, 2006 2:13 PM