BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sorting on Internal Calc Fields...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Randall Sell
Guest





PostPosted: Sat Feb 26, 2005 3:08 pm    Post subject: Sorting on Internal Calc Fields... Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.