Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Retrieving Horizontal Lines from .xml file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Hello RJBen,

    If you wanted to clear the previous text and then print something it would have to go before the print so it clears and then prints again.

    Comment


      #32
      I put
      if (State == State.DataLoaded)
      {
      ClearOutputWindow();
      }​
      in several places. I put it directly in front of every "Print" The program ignored it and continued to Print multiple times in the Output Window.
      Regardless of where I put it, it ignored it. It makes me wonder if the Condition is true.
      This was the last attempt and it doesn't Clear it either.

      protected override void OnBarUpdate()
      {
      if (State == State.Historical)
      return;

      if (State == State.DataLoaded)
      {
      ClearOutputWindow();
      }

      if (DrawObjects.Count > 0)
      {
      Print("Total number of Draw Objects " + DrawObjects.Count);

      Print("******************************");
      }​

      Comment


        #33
        Hello RJBen,

        In OnStateChange DataLoaded is called once when the data is loaded. That won't be called again so you need to remove that condition from OnBarUpdate, if you are trying to clear the output window on each OnBarUpdate event you would just place ClearOutputWindow right after the if (State == State.Historical) return;​

        Comment


          #34
          Jesse you are an absolute genius!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          88 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          134 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          118 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X