[Lazarus] Right click, paste as string?
Michael Van Canneyt
michael at freepascal.org
Sat Apr 21 12:01:54 CEST 2012
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.
More information about the Lazarus
mailing list