Home > Back-end >  How the BCB Chart drawing read data R to file. TXT file, etc...
How the BCB Chart drawing read data R to file. TXT file, etc...

Time:09-29

How the BCB Chart drawing read data export to file. TXT file, etc...

I want to see this data file to MATLAB another drawing

CodePudding user response:


 void __fastcall TForm3: : Button2Click (TObject * Sender) 
{
TStringList * sl=new TStringList ();

for (int i=0; I & lt; This - & gt; Chart1 - & gt; The Series [0] - & gt; YValues - & gt; The Count. I++)
{
Sl - & gt; Add (this - & gt; Chart1 - & gt; The Series [0] - & gt; YValues - & gt; The Items [I]);
}
Sl - & gt; SaveToFile (" test. TXT ");

The delete sl;
Sl=NULL;
}

CodePudding user response:

reference 1st floor ksrsoft response:
 void __fastcall TForm3: : Button2Click (TObject * Sender) 
{
TStringList * sl=new TStringList ();

for (int i=0; I & lt; This - & gt; Chart1 - & gt; The Series [0] - & gt; YValues - & gt; The Count. I++)
{
Sl - & gt; Add (this - & gt; Chart1 - & gt; The Series [0] - & gt; YValues - & gt; The Items [I]);
}
Sl - & gt; SaveToFile (" test. TXT ");

The delete sl;
Sl=NULL;
}



Want to ask about version might probably explain it with me?
I don't know just contact soon...
Just have put this CODE up and try to see the result is

Can please board big tell me what's the problem?

CodePudding user response:



I use xe10 with item attributes,

Cb6 with
Sl - & gt; Add (this - & gt; Chart1 - & gt; The Series [0] - & gt; YValues - & gt; The Value [I]);