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 

Preserve Calculated TFields..

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical
View previous topic :: View next topic  
Author Message
Robert Brock
Guest





PostPosted: Tue Aug 17, 2004 8:18 pm    Post subject: Preserve Calculated TFields.. Reply with quote



I'm on D5, so don't know if D6 or 7 already have this, but if they don't, a
sweet thing for D9 would be the ability to have a checkbox on the TFields
editor (and a default in project options) to 'Preserve Calculated TFields'..

Essentially make all calculated TFields un-deletable. Great for when you
want to reinstantiate the entire TField list, and not have to first check to
see if it has an OnCalcFields event defined.. If it does, you then need to
NOT select those TFields when getting ready to delete them all.. If the
TFields are used in a grid, it makes it even more fun, as the Calc'd fields
are of course interspersed amongst the others depending on grid column
order.. If the query is fetching a herd and a third of columns, and you
don't have them memorized or something, even perusing the OnCalcFields event
won't necessarily find them all, as sometimes I use Calc'd fields for
canvases to draw icons on, which ends up with you iterating through the
entire list, checking the fkKind property.. *squints*

Click the 'Preserve Calculated Fields' checkbox, select all TFields, Delete,
Calc'd TFields remain..
A fairly simple enhancement that would vastly increase productivity in those
situations..

On further thought, another one 'Preserve Labels & Masks' would be great as
well.. For large grids I've found myself actually using a temporary TQuery
to have the old and new side by side, and iterating down to manually copy
Masks and DisplayLabels from one set to the other.. That would be more
interesting to implement, however..

Rob


Back to top
Jeff Overcash (TeamB)
Guest





PostPosted: Tue Aug 17, 2004 9:27 pm    Post subject: Re: Preserve Calculated TFields.. Reply with quote




"Robert Brock" <Notta (AT) Nowhere (DOT) Net> wrote:
Quote:
I'm on D5, so don't know if D6 or 7 already have this, but if they don't, a
sweet thing for D9 would be the ability to have a checkbox on the TFields
editor (and a default in project options) to 'Preserve Calculated TFields'..


Actually this would be a simple editor replacement for the
default TFields editor. Should be fairly simple to do and
anyone can do it.

Back to top
Robert Brock
Guest





PostPosted: Tue Aug 17, 2004 11:11 pm    Post subject: Re: Preserve Calculated TFields.. Reply with quote



Ahh, that effectively kills that idea then, and here's some why and whatfor,
and whatnot..

I don't wany 'anyone' to do it, I want Borland to do it, it's their IDE, I
trust *them*..

I certainly don't have the time or the desire to do it myself.. I'm an
application developer, ie, a 'user' of Delphi, not a tools developer.. I
have all I can handle keeping up with first and foremost, our own
application, and then Delphi, Databases, Middleware, and the existing batch
of third party tools that, had I known then what I know now, I'd probably
not have chosen to use at least half of them.. And as I'm still in D5 using
the BDE, you can see how well that's going.. As our 750 forms use Orpheus
components extensively, and the Sourceforge version is stuck at D7, D7 is my
next aspiration, after which I'll need to re-do all those forms in order to
head to D9.. Bleah. Reading that over, why am I bothering to even post
wishlist items for D9, eh?

I don't want to rely on someone else to do it, and worry about them being
around as Delphi morphs with time.. Long ago, I needed a TabSet that would
have tabs on the left, yet with horizontal text, bought a great little set
of components called 'Chameleon Tab Controls' by Classic Software that
accomplished that, as Orpheus' Notebook didn't.. And now of course, Classic
has been out of business for several years, and I have no idea if this
component will work in D7, if it doesn't, there's another slew of forms I
have to deal with to be able to upgrade, or spend gobs of time trying to
figure out and modify that source.. They say get the source code for third
party components, but the ugly reality is, if they go out of business and/or
open-source it, you're hosed, unless you can clone yourself several times..

What I'm saying amidst all the whining and blather, is if it's that simple,
then it could be done in about 1.5 Dr. Peppers by the Borland dev team, and
it'd be another little plus for the IDE's efficiency, and I wouldn't have
another nightmare to look forward to at the next odd numbered version of
Delphi..

Rob


Back to top
David Clegg
Guest





PostPosted: Wed Aug 18, 2004 2:23 am    Post subject: Re: Preserve Calculated TFields.. Reply with quote

Robert Brock wrote:

Quote:
if it's that simple,
then it could be done in about 1.5 Dr. Peppers by the Borland dev
team,

Thats a big assumption. How do you know they don't drink Coke? ;-)

--
Cheers,
David Clegg
dclegg_at_ebetonline_dot_com

Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 Smile
Now supports Google Groups searching with Dyna-extend(tm) technology!

QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com

"Beer. Now there's a temporary solution." - Homer Simpson

Back to top
JED
Guest





PostPosted: Wed Aug 18, 2004 2:42 am    Post subject: Re: Preserve Calculated TFields.. Reply with quote

David Clegg wrote:

Quote:
How do you know they don't drink Coke?

because Dr Pepper is a lot nicer <vbg>

--
JED, QC - Win32 Client for Quality Central:
http://www.alphalink.com.au/~jed/QC/
Alpha 2.6.1 Now Available (2 July 2004)

Back to top
David Clegg
Guest





PostPosted: Wed Aug 18, 2004 2:45 am    Post subject: Re: Preserve Calculated TFields.. Reply with quote

JED wrote:

Quote:
because Dr Pepper is a lot nicer

*Nothing* is nicer than Coke

--
Cheers,
David Clegg
dclegg_at_ebetonline_dot_com

Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 Smile
Now supports Google Groups searching with Dyna-extend(tm) technology!

QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com

"Marge, it takes two to lie. One to lie and one to listen." - Homer
Simpson


Back to top
JED
Guest





PostPosted: Wed Aug 18, 2004 2:52 am    Post subject: Re: Preserve Calculated TFields.. Reply with quote

David Clegg wrote:

Quote:
JED wrote:

because Dr Pepper is a lot nicer

Nothing is nicer than Coke

coke is horrid unless there is a *lot* of alcohol in it.

--
JED, QC - Win32 Client for Quality Central:
http://www.alphalink.com.au/~jed/QC/
Alpha 2.6.1 Now Available (2 July 2004)

Back to top
Robert Brock
Guest





PostPosted: Wed Aug 18, 2004 4:49 am    Post subject: Re: Preserve Calculated TFields.. Reply with quote

*grin* Well, I was a Pepsi guy for millenia, then switched to DP, and never
went back...

After re-reading my answer, it sounded almost rantish, and I just wanted to
say that while I sounded rather cranky, I do appreciate your answer, Mr.
Overcash..

Rob


Back to top
JED
Guest





PostPosted: Wed Aug 18, 2004 5:10 am    Post subject: Re: Preserve Calculated TFields.. Reply with quote

Robert Brock wrote:


Quote:
After re-reading my answer, it sounded almost rantish, and I just
wanted to say that while I sounded rather cranky, I do appreciate
your answer, Mr. Overcash..

You never know, someone might be interested in this idea enough to
create a QC feature request for it and even provide the code. Then
Borland would have no excuse but to include it...

I just had a look at this and the change wouldn't be that involved at
all. Just a simple modification to the RemoveFields method of the
property editor and then registering the alternate property editor for
datasets.

Getting a GUI to cater for this change will definately make for
interesting opinion. Perhaps adding a context menu item that displayed
a dialog that allowed you to select which FieldKinds to leave when a
delete occurs and then save it in the registry.

Also you would have to cater for a Forceful delete. This could be done
by requiring the user to select each field and deleting it separately.

(probably would have been quicker to make the adjustment than write
this message...)

--
JED, QC - Win32 Client for Quality Central:
http://www.alphalink.com.au/~jed/QC/
Alpha 2.6.1 Now Available (2 July 2004)

Back to top
John Kaster (Borland)
Guest





PostPosted: Wed Aug 18, 2004 6:05 pm    Post subject: Re: Preserve Calculated TFields.. Reply with quote

JED in <xn0dm61y5ev05g00a (AT) newsgroups (DOT) borland.com> wrote:

Quote:
You never know, someone might be interested in this idea enough to
create a QC feature request for it and even provide the code. Then
Borland would have no excuse but to include it...

Except for QA and pubs work. ;)


--
John Kaster, Borland Developer Relations, http://bdn.borland.com
BorCon2004, all info in one place! http://info.borland.com/conf2004
Features and bugs: http://qc.borland.com
Get source: http://cc.borland.com
Unofficial information overload: http://blogs.borland.com

Back to top
JED
Guest





PostPosted: Wed Aug 18, 2004 10:46 pm    Post subject: Re: Preserve Calculated TFields.. Reply with quote

John Kaster (Borland) wrote:

Quote:
JED in <xn0dm61y5ev05g00a (AT) newsgroups (DOT) borland.com> wrote:

You never know, someone might be interested in this idea enough to
create a QC feature request for it and even provide the code. Then
Borland would have no excuse but to include it...

Except for QA and pubs work. Wink

I was going to bite and had a lengthy reply but in the end I just can't
be bothered.

I guess the original poster will just stick with D5.

--
JED, QC - Win32 Client for Quality Central:
http://www.alphalink.com.au/~jed/QC/
Alpha 2.6.1 Now Available (2 July 2004)

Back to top
John Kaster (Borland)
Guest





PostPosted: Wed Aug 18, 2004 11:21 pm    Post subject: Re: Preserve Calculated TFields.. Reply with quote

JED in <xn0dm76ey1q7ex000 (AT) newsgroups (DOT) borland.com> wrote:

Quote:
I was going to bite and had a lengthy reply but in the end I just
can't be bothered.

I didn't post to offend. Just to point out that there is rarely a "slam
dunk" decision on new features, however minor.

Quote:
I guess the original poster will just stick with D5.

Or use an add-in. That's part of the whole point of Delphi's design in
the first place.


--
John Kaster, Borland Developer Relations, http://bdn.borland.com
BorCon2004, all info in one place! http://info.borland.com/conf2004
Features and bugs: http://qc.borland.com
Get source: http://cc.borland.com
Unofficial information overload: http://blogs.borland.com

Back to top
David Clegg
Guest





PostPosted: Thu Aug 19, 2004 2:24 am    Post subject: Re: Preserve Calculated TFields.. Reply with quote

John Kaster (Borland) wrote:

Quote:
Or use an add-in.

Hey! That would make a great programming competition! ;-)

--
Cheers,
David Clegg
dclegg_at_ebetonline_dot_com

Vote 1 http://cc.borland.com/codecentral/ccweb.exe/listing?id=21489 Smile
Now supports Google Groups searching with Dyna-extend(tm) technology!

QualityCentral. The best way to bug Borland about bugs.
http://qc.borland.com

"First you don't want me to get the pony, then you want me to take it
back. Make up your mind." - Homer Simpson

Back to top
John Kaster (Borland)
Guest





PostPosted: Thu Aug 19, 2004 6:13 am    Post subject: Re: Preserve Calculated TFields.. Reply with quote

David Clegg in <xn0dm7c1f7benv001 (AT) newsgroups (DOT) borland.com> wrote:

Quote:
Hey! That would make a great programming competition! Wink

have to finish judging the current one first. It's overdue again :(



--
John Kaster, Borland Developer Relations, http://bdn.borland.com
BorCon2004, all info in one place! http://info.borland.com/conf2004
Features and bugs: http://qc.borland.com
Get source: http://cc.borland.com
Unofficial information overload: http://blogs.borland.com

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Non-Technical 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.