Results 1 to 9 of 9

Thread: How can I input an existing data series into a sub that controls MSCHART

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2010
    Location
    North St Paul, Minnesota
    Posts
    75

    How can I input an existing data series into a sub that controls MSCHART

    I want to use MSCHART with VB6 to be able to plot two lines on the same chart. The example I think will work for me is in this thread on the ninth post:

    https://www.vbforums.com/showthread....ination-needed

    But I have hit a snag. The example generates the data matrices in the code that controls the MSCHART. In my case, my data series exists already in a sub in a different module from the form that contains the MSCHART. How can I make my matrix variables replace the locally generated series (in Sub Chartit)?

    My data looks like this. There are two series in two variables.

    n ChartPointsAc ........ n ChartPointsRe
    1 5.62212463652474 1 10.7578753634753
    2 6.50250842134825 2 9.87749157865175
    3 6.92226725141999 3 9.45773274858001
    4 7.19301243651532 4 9.18698756348468
    5 7.39461007232716 5 8.98538992767284
    6 7.55893544986895 6 8.82106455013104
    7 7.70250069151093 7 8.67749930848907
    8 7.83646642657158 8 8.54353357342841
    9 7.97283240645675 9 8.40716759354325
    10 8.19 10

    I want to send the matrices ChartPointsAc and ChartPointsRe which are located in: Module=Table4, Sub=TTABK4

    The example data is in Module=frmDRchart, Sub=Private Sub ChartIt(CurSeries As Integer) (The integer indicates which series it is.

    Sub Chartit is referenced in form_load twice, ie: Chartit 1, and Chartit 2, but that does not pass data.

    How can I replace the example data series' created in Sub Chartit with my 2 series'?
    Last edited by StanH; Aug 2nd, 2022 at 12:54 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width