Ask a questionAsk a question
 

AnswerErrorTask

  • Tuesday, March 21, 2006 8:02 PMmichael olson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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

Answers

  • Thursday, March 30, 2006 12:13 AMDr. eX Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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

All Replies

  • Tuesday, March 21, 2006 8:13 PMmichael olson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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?
  • Thursday, March 30, 2006 12:13 AMDr. eX Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    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 2:13 PMmichael olson Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    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