On Sat, 21 Apr 2012, Reinier Olislagers wrote:

Hi list,

When working with e.g. multiline SQL statements, sometimes I want to
copy them to a string in Lazarus, e.g from something like:

The lazarus data dictionary SQL editor does this for you.
Execute query.
Select 'generate code' button.
Select 'Generate Pascal string/constant'

That's it.

The same can be done in the Lazarus IDE.

1. Open TSQLQuery component's SQL property editor.
2. Type query.
3. Right click in SQL editor.
4. select 'Create string constant' from popup menu.

Michael.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to