Calculated fields in CodeGear RAD Studio 2007 C++

edited 9:53AM in FastCube
Hi!

Could anybody show me an example code to create a calculated field in C++?
I tried with the following code, but it did not work for me:

fcSlice1->AddCalcFieldTo(
"begin Result := 111; end.",
"test col", 1, af_Formula, NULL);

The column appears in the grid, but all cells are blank. I tried with "begin Result := True; end." instead of NULL too, but the cells stayed blank.

Comments

  • edited 9:53AM
    Hi.

    You must recompile FastCube with FastScript support.

    Oleg.

Leave a Comment