Home » Community » Newbie corner » SQL + vector related question
Re: SQL + vector related question [message #39938 is a reply to message #39929] |
Mon, 13 May 2013 18:12 |
jerson
Messages: 202 Registered: June 2010 Location: Bombay, India
|
Experienced Member |
|
|
Follow up
I changed the code to this and I am able to save to the database now. Is there an easier way to achieve this using native U++ utils?
String dat;
for (int i =0;i < LeftSeries[0].GetCount();i++) dat << AsString(LeftSeries[0][i]);
dat << '\r';
for (int i =0;i < LeftSeries[1].GetCount();i++) dat << AsString(LeftSeries[1][i]);
dat << '\r';
for (int i =0;i < LeftSeries[2].GetCount();i++) dat << AsString(LeftSeries[2][i]);
dat << '\r';
for (int i =0;i < LeftSeries[3].GetCount();i++) dat << AsString(LeftSeries[3][i]);
dat << '\r';
for (int i =0;i < RightSeries[0].GetCount();i++) dat << AsString(RightSeries[0][i]);
dat << '\r';
for (int i =0;i < RightSeries[1].GetCount();i++) dat << AsString(RightSeries[1][i]);
dat << '\r';
for (int i =0;i < RightSeries[2].GetCount();i++) dat << AsString(RightSeries[2][i]);
dat << '\r';
for (int i =0;i < RightSeries[3].GetCount();i++) dat << AsString(RightSeries[3][i]);
dat << '\r';
The information in the database is like this
[4, -40][11, -40]
[1, -33][12, -33]
[5, -40][11, -40]
[1, -33][11, -33]
Each line has data for one Vector and can hold a max of 12 points.
How should I re-populate the vector from the string?
Regards
Jerson
|
|
|
Goto Forum:
Current Time: Wed Jun 12 03:11:29 CEST 2024
Total time taken to generate the page: 0.01915 seconds
|