Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I pass CWGraph1.ChartY from form 1 to form2

Hello everyone

 

I'll be pleased if some of you would help me.

 

I’m writing an application where I would like to pass ChartY from Form1 to Form2 after I taking data.

 

 

With

Form2.Graph2.ChartY=Form1.Graph1.ChartY

 

it doesn’t work Smiley Mad .

 

Help

 

Thanks in advance

0 Kudos
Message 1 of 2
(6,646 Views)

Hi pawlik,

The problem you are running into is that ChartY is a function so you cannot assign a function to another function. If you already have data on a graph, you should use the Graph.YData property. I believe this will work for you:

Form2.Graph2.YData = Form1.Graph1.YData

Regards,

Matt M
NI

0 Kudos
Message 2 of 2
(6,634 Views)