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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          58 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          133 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          50 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X