none
clearing a chart RRS feed

  • Question

  • Using this:

    Me.Chart1.Series(0).Points.Clear()

    if points are many, it takes to much time. For ex., if points are 100000, in my PC it takes some second to clear.

    This is not good; is there another way?

    In VB6 this was immediate.


    Monday, March 23, 2020 11:02 AM

Answers

  • I've found myself.

    Using:

    Me.Chart1.Series.Clear()

    then updating all the settings of chart again, it works fast.

    Monday, March 23, 2020 11:55 AM
  • I've found myself.

    Using:

    Me.Chart1.Series.Clear()

    then updating all the settings of chart again, it works fast.

    Be aware that new instancing of an object goes mostly quicker and gives a better memory use. 

    Success
    Cor

    Monday, March 23, 2020 1:06 PM

All replies

  • I've found myself.

    Using:

    Me.Chart1.Series.Clear()

    then updating all the settings of chart again, it works fast.

    Monday, March 23, 2020 11:55 AM
  • I've found myself.

    Using:

    Me.Chart1.Series.Clear()

    then updating all the settings of chart again, it works fast.

    Be aware that new instancing of an object goes mostly quicker and gives a better memory use. 

    Success
    Cor

    Monday, March 23, 2020 1:06 PM