Pre loader

SCIOhlcDataSeries

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi, guys

Is it possible to use negative index for methods:

-(void) insertAt:(int)index X:(SCIGenericType)x Open:(SCIGenericType)open High:(SCIGenericType)high Low:(SCIGenericType)low Close:(SCIGenericType)close;

-(void) updateAt:(int)index Open:(SCIGenericType)open High:(SCIGenericType)high Low:(SCIGenericType)low Close:(SCIGenericType)close;

Can you give an answer?

Best regards,
Sushynski Andrei

Version
2.0.0.1523
  • You must to post comments
0
0

Good day

Index in that functions represents order of element in array. Methods do not throw exception at the moment on attempt of writting at negative position, but we are considering adding such exceptions.

If you want to insert element before any other in array, you should do it at 0 index. You will make it the first element in array and the rest elements will move.
Updating at negative index do nothing because there are no elements with negative index.

Best regards
Andrii
SciChart iOS Developer

  • Andrei Sushynski
    Thanks It will be a great possibility to use negative index. I will be waiting for this
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies