Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

Difference between SQLQuery.SQL.Text & SQLQuery.SQL.Strings[]

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Eric Kom

Hi,

SQLQuery.SQL.Text & SQLQuery.SQL.Strings[], They all property of type string.

Since I can't get a documentation about SQLQuery.SQL.Strings[] property, please what is a difference between both?

Kind Regards Eric Kom System Administrator & Programmer - Metropolitan College _________________________________________ / You are scrupulously honest, frank, and \ | straightforward. Therefore you have few | \ friends. / ----------------------------------------- \ \ .--. |o_o | |:_/ | // \ \ (| Kom | ) /'\_ _/`\ \___)=(___/ 2 Hennie Van Till, White River, 1240 Tel: 013 750 2255 | Fax: 013 750 0105 | Cell: 078 879 1334 | www.kom.za.net | www.kom.za.org | www.erickom.co.za Key fingerprint: 513E E91A C243 3020 8735 09BB 2DBC 5AD7 A9DA 1EF5

Reply by email

Sven Barth
to Eric Kom
Eric Kom wrote 8 lines
Hi, SQLQuery.SQL.Text & SQLQuery.SQL.Strings[], They all property of type string. Since I can't get a documentation about SQLQuery.SQL.Strings[] property, please what is a difference between both?

SQLQuery.SQL is simply a TStringList instance, so the difference is that .Text gets/sets the whole text and Strings[] gets and sets a specific line (0 based). See also:
http://www.freepascal.org/docs-html/rtl/classes/tstrings.html

Regards,
Sven

Reply by email