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
Nelek23-Nov-14 23:52
protectorNelek23-Nov-14 23:52 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 1:02
Member 1123037224-Nov-14 1:02 
GeneralRe: Perform operations on c++ DataTable Pin
Nelek24-Nov-14 1:52
protectorNelek24-Nov-14 1:52 
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 
Member 11230372 wrote:
2-adding an extra column "ret" to dbdataset

Member 11230372 wrote:
3-fill "ret" rows based on values from column "Population"

Now I am confused, do you mean rows or columns? Assuming you mean columns, which is what you have added, your code should be something like:
C++
for (int row=0; row < dbdataset->Rows->Count; row++)
{
    rt_row=dbdataset->Rows[row];
    rt_row["Ret"] = log(System::Convert::ToDouble(rt_row["Population"]) /  --> not sure what this calculation should be
// System::Convert::ToDouble(rt_row["Population"][row-1]));
    //rt_row["DataReturn"]=System::Convert::ToDouble(dbdataset->Rows[row]["Population"])/System::Convert::ToDouble(dbdataset->Rows[row-1]["Population"]);
//    dbdataset->Rows->Add(rt_row);
}

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 
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 

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.