Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Perform operations on c++ DataTable Pin
Nareesh123-Nov-14 13:33
Nareesh123-Nov-14 13:33 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037223-Nov-14 22:29
Member 1123037223-Nov-14 22:29 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan23-Nov-14 22:24
mveRichard MacCutchan23-Nov-14 22:24 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037223-Nov-14 23:52
Member 1123037223-Nov-14 23:52 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 0:11
mveRichard MacCutchan24-Nov-14 0:11 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 0:27
Member 1123037224-Nov-14 0:27 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 0:31
mveRichard MacCutchan24-Nov-14 0:31 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 0:38
Member 1123037224-Nov-14 0:38 
"No, it still makes no sense. You add an extra column to your table and then you say you need to store information in extra rows. Choose one or the other."

I've added an extra ret column
C#
DataColumn^rt_col=gcnew DataColumn();
                     rt_col->ColumnName = "Ret";
                     rt_col->DataType=System::Type::GetType("System.Double");
                     dbdataset->Columns->Add(rt_col);

Then I need to fill the rows of this new column "Ret" based on the values held in "Population" column.
1st value of "Ret" should equal = log( 1st value of Population / 2nd value of Population)
2nd value of "Ret" = log (3rd value of Population / 4th value of Population)
....

ps: please let me reiterate that both "Ret" and "Population" are columns from the datable object dbdataset.

Cheers

** in vba it will take me <3 minutes to perform it but I am stuck in c++ (part of the learning process I suppose ) Again thanks for the help

modified 24-Nov-14 6:57am.

GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 0:52
mveRichard MacCutchan24-Nov-14 0:52 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 1:00
Member 1123037224-Nov-14 1:00 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 1:22
mveRichard MacCutchan24-Nov-14 1:22 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 1:39
Member 1123037224-Nov-14 1:39 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 1:56
mveRichard MacCutchan24-Nov-14 1:56 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 7:54
Member 1123037224-Nov-14 7:54 
QuestionClasses and List of classes Pin
mrkeivan21-Nov-14 19:58
mrkeivan21-Nov-14 19:58 
AnswerRe: Classes and List of classes Pin
Richard MacCutchan21-Nov-14 21:31
mveRichard MacCutchan21-Nov-14 21:31 
QuestionDynamically re sizable dialog Pin
techkrish21-Nov-14 0:06
techkrish21-Nov-14 0:06 
AnswerRe: Dynamically re sizable dialog Pin
Richard MacCutchan21-Nov-14 21:26
mveRichard MacCutchan21-Nov-14 21:26 
SuggestionRe: Dynamically re sizable dialog Pin
David Crow22-Nov-14 4:42
David Crow22-Nov-14 4:42 
AnswerRe: Dynamically re sizable dialog Pin
«_Superman_»25-Nov-14 18:56
professional«_Superman_»25-Nov-14 18:56 
Questionstock market code please Pin
Eslam Said Khashb20-Nov-14 11:04
Eslam Said Khashb20-Nov-14 11:04 
GeneralRe: stock market code please PinPopular
PIEBALDconsult20-Nov-14 11:43
mvePIEBALDconsult20-Nov-14 11:43 
GeneralRe: stock market code please Pin
Eslam Said Khashb20-Nov-14 21:30
Eslam Said Khashb20-Nov-14 21:30 
GeneralRe: stock market code please Pin
Richard MacCutchan20-Nov-14 21:43
mveRichard MacCutchan20-Nov-14 21:43 
GeneralRe: stock market code please Pin
Eslam Said Khashb21-Nov-14 18:34
Eslam Said Khashb21-Nov-14 18:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.