 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Randall Sell Guest
|
Posted: Sat Feb 26, 2005 3:08 pm Post subject: Sorting on Internal Calc Fields... |
|
|
Hi,
I am using Delphi7.1 (with DB patch #2), trying to sort on an InternalCalc
field of a client dataset. It doesn't seem to work if the value of the
InternalCalc field is derived in the OnCalcFields event. If I pre-populate
the values in some while not eof loop and don't use the OnCalcFields at all
- I can then place an index (IndexFieldNames) on that internalCalc field
and get the sort I want. But that is a bit cludgy. Is there a way around
this using persistent indexes or anything?
In a way, I guess it kinda makes sense - how would the VCL know where the
field lies in the sort if it hasn't calculated the value yet.
I've read other messages indicating things like checking the dataset.state
in OnCalcFields, but I think those only applied to earlier revs of Delphi.
When I tried that - I get no values in my calc field at all. The
documentation is pretty sparse around dsInternalCalc.
Any advise gladly tested... :)
-randall
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|