Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DataSeries Set() question

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

    DataSeries Set() question

    What is the difference between [] and Set()? for assigning a value?

    If foo is a DataSeries, are the following equivalent?
    • foo[index] = value;
    • foo.Set(index, value);

    I am just trying to find out whether there is a semantic difference, or whether it is just a matter of style.

    Thanks,
    EV

    #2
    EV, for assigning values to DataSeries please use the Set() method.

    Comment


      #3
      Originally posted by ETFVoyageur View Post
      What is the difference between [] and Set()? for assigning a value?

      If foo is a DataSeries, are the following equivalent?
      • foo[index] = value;
      • foo.Set(index, value);

      I am just trying to find out whether there is a semantic difference, or whether it is just a matter of style.

      Thanks,
      EV
      In my experience, it is just a matter of style, but I think that the only approved/blessed NT way is to use the Set() method.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      576 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X