Calculated fields in CodeGear RAD Studio 2007 C++
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.
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
You must recompile FastCube with FastScript support.
Oleg.