Click here to Skip to main content
15,563,228 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Perform operations on c++ DataTable Pin
Nareesh123-Nov-14 14:33
Nareesh123-Nov-14 14:33 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037223-Nov-14 23:29
Member 1123037223-Nov-14 23:29 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan23-Nov-14 23:24
mveRichard MacCutchan23-Nov-14 23:24 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 0:52
Member 1123037224-Nov-14 0:52 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 1:11
mveRichard MacCutchan24-Nov-14 1:11 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 1:27
Member 1123037224-Nov-14 1:27 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 1:31
mveRichard MacCutchan24-Nov-14 1:31 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 1:38
Member 1123037224-Nov-14 1: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 1:52
mveRichard MacCutchan24-Nov-14 1:52 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 2:00
Member 1123037224-Nov-14 2:00 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 2:22
mveRichard MacCutchan24-Nov-14 2:22 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 2:39
Member 1123037224-Nov-14 2:39 
GeneralRe: Perform operations on c++ DataTable Pin
Richard MacCutchan24-Nov-14 2:56
mveRichard MacCutchan24-Nov-14 2:56 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 8:54
Member 1123037224-Nov-14 8:54 
QuestionClasses and List of classes Pin
mrkeivan21-Nov-14 20:58
mrkeivan21-Nov-14 20:58 
AnswerRe: Classes and List of classes Pin
Richard MacCutchan21-Nov-14 22:31
mveRichard MacCutchan21-Nov-14 22:31 
QuestionDynamically re sizable dialog Pin
techkrish21-Nov-14 1:06
techkrish21-Nov-14 1:06 
AnswerRe: Dynamically re sizable dialog Pin
Richard MacCutchan21-Nov-14 22:26
mveRichard MacCutchan21-Nov-14 22:26 
SuggestionRe: Dynamically re sizable dialog Pin
David Crow22-Nov-14 5:42
David Crow22-Nov-14 5:42 
AnswerRe: Dynamically re sizable dialog Pin
«_Superman_»25-Nov-14 19:56
professional«_Superman_»25-Nov-14 19:56 
Questionstock market code please Pin
Eslam Said Khashb20-Nov-14 12:04
Eslam Said Khashb20-Nov-14 12:04 
GeneralRe: stock market code please PinPopular
PIEBALDconsult20-Nov-14 12:43
professionalPIEBALDconsult20-Nov-14 12:43 
GeneralRe: stock market code please Pin
Eslam Said Khashb20-Nov-14 22:30
Eslam Said Khashb20-Nov-14 22:30 
GeneralRe: stock market code please Pin
Richard MacCutchan20-Nov-14 22:43
mveRichard MacCutchan20-Nov-14 22:43 
GeneralRe: stock market code please Pin
Eslam Said Khashb21-Nov-14 19:34
Eslam Said Khashb21-Nov-14 19: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.