Home > Back-end >  Type conversion
Type conversion

Time:10-22

After using Tchart drawing how to traverse the Series1 Y value, want to all the Y value preserved, writing code
Int tt [1000];
int i;
for (i=0; i<1000; I++)
{[I]=Series1 - tt & gt; YValues [I]; }
And then can't convert TchartValueList into Int problems, this how to solve

CodePudding user response:

 [I]=Series1 - tt & gt; YValues - & gt; The Value [I]; 

CodePudding user response:

 for (I=0; i[I]=Series1 - tt & gt; YValues - & gt; The Value [I]; 

CodePudding user response:

refer to the second floor ksrsoft response:
 for (I=0; i[I]=Series1 - tt & gt; YValues - & gt; The Value [I]; 

Thank you ah, use your code is right, there is a problem oh, is what I want to traverse all Y value again, and then save down, you look at me the following code if you have any questions,
int i;
Byte TT [1000];
For (I=0; Series1 - & gt; YValues - & gt; The Count (); I++)
[I]=Series1 - TT & gt; YValues - & gt; The Value [I];//in the ASCII '0' ~ '9'
TMemoryStream * File=new TMemoryStream ();
File - & gt; Size=1000;
File - & gt; Write (& amp; TT [0], 1000);
File - & gt; SaveToFile (" d: \ \ test. TXT ");
  • Related