Using RecNo in OnCalcFields
Posted: 22.10.2014, 13:22
Hi everyone,
I have code like this in OnCalcFields event:
But when I use this part of code there are strange results (index column) in DBGrid (and in the dataset I suppose)
Without using this part of code everything is fine and looks like this:
It seems like passing RecNo value to some dataset field mess up dataset.
How can I solve it?
I have code like this in OnCalcFields event:
Code: Select all
DataSet.FieldByName('sspec_lp').AsInteger :=
DataSet.RecNo;
Without using this part of code everything is fine and looks like this:
It seems like passing RecNo value to some dataset field mess up dataset.
How can I solve it?