Hi
My apologies, I should have said that CALCFIELD1 is a calculated, persistant field in a FireBird database and is not dynamically created in code. The DDL definition for CALCFIELD1 is
Code: Select all
CALCFIELD1 COMPUTED BY ((EXTRACT(MONTH FROM SOMEDATE))),
IBCQuery1 has an SQL property of
Code: Select all
SELECT DISTINCT SOMEDATE,
CALCFIELD1,
CALCFIELD2
FROM SOMETABLE
WHERE
SOMEDATE BETWEEN '2007/10/1' AND '2007/10/31'
ORDER BY SOMEDATE
If I attempt what you have asked in setting the FieldKind property at runtime I get the error:
IBCQuery1: Cannot perform this operation on an open dataset.
The reason why I have raised this question is that IBX components correctly return the FieldKind property for CALCFIELD1 and CALCFIELD2 as fkCalculated
regards and thanks
SeaCay