<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi<br>
<br>
Yes In cases where the component is on a data module. Basically
the component is a Query component and should be linked to a
database / connection component. There is one of these in the app
and all db components should connect to this. However it appears
that some old components (possibly from when the app was BDE
based) didn't have that set and had just defaulted to the
'Default' connection. The updated component version now nicely
reports this as an error. So instead of searching for all times
this error occurs I would rather do a dfm search (all components
created in code are correctly instantiated) .<br>
<br>
Cheers<br>
Rob<br>
<br>
<br>
On 10/09/2013 4:46 p.m., Jeremy Coulter wrote:<br>
</div>
<blockquote
cite="mid:CAGYhmGj_zoPRsCwZ-7ZiSWtYQTtR5vy+mmYmdY7DiQhCj-eR8w@mail.gmail.com"
type="cite">
<div dir="ltr">so have you hard coded the property on the control
itself rather than in code ?
<div><br>
</div>
<div>Jeremy</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Sep 10, 2013 at 4:26 PM, Robert
Martin <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:rob@chreos.co.nz" target="_blank">rob@chreos.co.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
I don't think they were ever set correctly. Might have to
make a tool<br>
to deal with it!<br>
<br>
Cheers<br>
Rob<br>
<div>
<div class="h5"><br>
<br>
On 10/09/2013 3:02 p.m., John Bird wrote:<br>
> I have a tool that can search DFM too, but it can
find where a property is<br>
> set, not where there is no setting.<br>
><br>
> I do know this problem, have seen a large program
(D5) where occasionally a<br>
> navigation control datasource setting was lost.
Because there were so many<br>
> data modules this was a real nuisance, I found the
best way was to compare<br>
> all the DFM files with the SVN repository where the
settings were known to<br>
> be correct and that often saved a pile of time -
and also showed what the<br>
> correct setting was as well.<br>
><br>
> Of course if the setting has never been there then
you have to do something<br>
> smarter and a special tool may be needed.<br>
><br>
> John Bird<br>
><br>
> -----Original Message-----<br>
> From: Robert Martin<br>
> Sent: Tuesday, September 10, 2013 12:16 PM<br>
> To: NZ Borland Developers Group - Delphi List<br>
> Subject: [DUG] Finding all instances of a component
where a property has<br>
> notbeen set<br>
><br>
> Hi all<br>
><br>
> We have a large app where there are some components
(database connection<br>
> components) where a property has not been set but
should have been. A<br>
> recent component update by the author has bought
this to our attention,<br>
> now we just need to find all of them and fix.<br>
><br>
> I have a tool to search dfm files but in this case
we want to find only<br>
> instances of a component without an entry for a
property. Is there an<br>
> easy way to do this or do I need to build a tool?<br>
><br>
> Cheers<br>
> Rob<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> NZ Borland Developers Group - Delphi mailing list<br>
> Post: <a moz-do-not-send="true"
href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
> Admin: <a moz-do-not-send="true"
href="http://delphi.org.nz/mailman/listinfo/delphi"
target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
> Unsubscribe: send an email to <a
moz-do-not-send="true"
href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
with<br>
> Subject: unsubscribe<br>
><br>
> _______________________________________________<br>
> NZ Borland Developers Group - Delphi mailing list<br>
> Post: <a moz-do-not-send="true"
href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
> Admin: <a moz-do-not-send="true"
href="http://delphi.org.nz/mailman/listinfo/delphi"
target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
> Unsubscribe: send an email to <a
moz-do-not-send="true"
href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
with Subject: unsubscribe<br>
><br>
><br>
</div>
</div>
> -----<br>
> No virus found in this message.<br>
> Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com" target="_blank">www.avg.com</a><br>
> Version: 2013.0.3392 / Virus Database: 3222/6650 -
Release Date: 09/09/13<br>
<div class="HOEnZb">
<div class="h5">><br>
><br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a moz-do-not-send="true"
href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
Admin: <a moz-do-not-send="true"
href="http://delphi.org.nz/mailman/listinfo/delphi"
target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a moz-do-not-send="true"
href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
with Subject: unsubscribe<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<p class="" avgcert""="" color="#000000" align="left">No virus
found in this message.<br>
Checked by AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Version: 2013.0.3392 / Virus Database: 3222/6650 - Release Date:
09/09/13</p>
</blockquote>
<br>
</body>
</html>