[Lazarus] Tool to convert a multiline text to a pascal string constant

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Wed Feb 3 01:03:30 CET 2016


On 2016-02-02 21:33, Luiz Americo Pereira Camara wrote:
> Hi is there any tool for Lazarus to convert a multi line text (xml snipet,
> SQL) to a string constant?

Yes, the tiSQLEditor (written for the tiOPF project) can do just that
(and much more of course). It can convert text to the clipboard (in the
case of the application, normally SQL statements, but any text really)
to Object Pascal strings. It can do the reverse too.  You are welcome to
copy the relevant code out of the project and make a small Memo plus one
Button tool, or simply download the latest binary of tiSQLEditor.


http://sourceforge.net/p/tiopf/tiopf_apps/ci/master/tree/tiSQLEditor_fpGUI/

The code is located in the frm_editor.pas unit.


Binaries of tiSQLEditor can be downloaded from here:

   http://sourceforge.net/projects/tiopf/files/Utilities/



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




More information about the Lazarus mailing list