Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 19:58:06 +0000



Post From: Tool.BeginIndex

[2014-10-03 21:32:55]
QnReally - Posts: 181
if (sc.UserDrawnChartDrawingExists(sc.ChartNumber, UniqueLineNumber + ni)) {
  Tool.Clear();
  if (sc.GetUserDrawingByLineNumber(sc.ChartNumber, UniqueLineNumber + ni, Tool, DRAWING_PITCHFORK_SCHIFF, 0)) {
    BI = Tool.BeginIndex; BV = Tool.BeginValue;
    Buffer.Format("Retr LN = %d usi=%d bi=%d bv=%.2f ", UniqueLineNumber + ni, sc.UpdateStartIndex, BI, BV); sc.AddMessageToLog(Buffer, 0);
  }
}

I am getting a value of -1 for the Tool.BeginIndex. This used to work a couple of months ago but it stopped working with one of the later releases. I am on 1191 at the moment. Has something changed in the API? I have not changed my code but I understand I could still have a problem on my end. The Tool.BeginValue prints correctly though.

Thanks.