[Lazarus] Saving an array to a string

Michael Thompson mike.cornflake at gmail.com
Tue Jul 1 16:55:58 CEST 2014


> Is it possible to save an array of string to a single string for storing
in a string field within a database?

Suspect it'll be something like
MyString := '';
For i := Low(MyArray) to High(MyArray) Do
  MyString := MyString + MyArray[i] + LineEnding;

MyStringField.AsString := MyString;


On 1 July 2014 16:49, Richard Mace <richard.mace at gmail.com> wrote:

> Hi All,
> Is it possible to save an array of string to a single string for storing
> in a string field within a database?
> If so, could anyone give me any pointers please?
>
> Thanks
>
> Richard
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140701/c927662e/attachment-0003.html>


More information about the Lazarus mailing list