Click here to Skip to main content
15,868,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Perform operations on c++ DataTable Pin
Nelek23-Nov-14 22:52
protectorNelek23-Nov-14 22:52 
GeneralRe: Perform operations on c++ DataTable Pin
Member 1123037224-Nov-14 0:02
Member 1123037224-Nov-14 0:02 
GeneralRe: Perform operations on c++ DataTable Pin
Nelek24-Nov-14 0:52
protectorNelek24-Nov-14 0:52 
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 
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 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 
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 

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.