On 2015-11-06 17:19, Michael Van Canneyt wrote:
> With QMyVeryLongQueyObjectName as Q do
> try
> // Do things with Q
> finally
> Q.Close;
> end;
var
Q: TQuery absolute QMyVeryLongQueyObjectName;
begin
with Q do
try
// Do things with Q
finally
Q.Close;
end;
problem solved! ;-)
And because Q is such a short name, I wouldn't even both with the WITH
statement above. It would make for easier debugging too. eg: debug
tooltips evaluation etc.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus